-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathxdo.ahk
executable file
·65 lines (49 loc) · 968 Bytes
/
xdo.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#InstallKeybdHook
#UseHook
#Persistent
ahkdll := DllCall("LoadLibrary", "str", A_ScriptDir . "\xdotool.dll.so")
DllCall(A_ScriptDir . "\xdotool.dll.so\xinit", "cdecl")
return
q::exitapp
::abc::
msgbox f4
return
CONTROL_L:
msgbox shift8
return
^8:
msgbox control8
return
F3::
msgbox f3
return
#ifwinactive ^naveen
a::
inputbox x
sendahk(x)
return
b::
sendahk("abc ")
return
i::
sendevent, a
DllCall(A_ScriptDir . "\xdotool.dll.so\xmousemove"
, "int", 0, "int", -20, "int", 1, "cdecl")
return
k::
DllCall(A_ScriptDir . "\xdotool.dll.so\xmousemove"
, "int", 0, "int", 20, "int", 1, "cdecl")
return
j::
DllCall(A_ScriptDir . "\xdotool.dll.so\xmousemove"
, "int", -20, "int", 0, "int", 1, "cdecl")
return
l::
DllCall(A_ScriptDir . "\xdotool.dll.so\xmousemove"
, "int", 20, "int", 0, "int", 1, "cdecl")
return
n::
controlsend, , hello, naveen
msgbox xsend complete
return
#ifwinexist