forked from seank-com/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keys.ahk
79 lines (66 loc) · 1.46 KB
/
keys.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#SingleInstance force
ClonesPush(strKeys)
{
global WowWinId1
global WowWinId2
global WowWinId3
global WowWinId4
global WowWinId5
IfWinNotActive, ahk_id %WowWinId1%
ControlSend, , %strKeys%, ahk_id %WowWinId1%
IfWinNotActive, ahk_id %WowWinId2%
ControlSend, , %strKeys%, ahk_id %WowWinId2%
IfWinNotActive, ahk_id %WowWinId3%
ControlSend, , %strKeys%, ahk_id %WowWinId3%
IfWinNotActive, ahk_id %WowWinId4%
ControlSend, , %strKeys%, ahk_id %WowWinId4%
IfWinNotActive, ahk_id %WowWinId5%
ControlSend, , %strKeys%, ahk_id %WowWinId5%
}
;Grab unique window ID's
WinGet, WowWinId, List, World of Warcraft
#IfWinActive ahk_class ConsoleWindowClass
^V::
SendInput {Raw}%clipboard%
return
#IfWinActive
#v::
clipboard = %clipboard%
SendInput, ^v
return
#z::
SendInput, !s
return
#a::
SendInput, ^{F4}
return
;SendInput, {home}
;SendInput, {right}
;SendInput, {space}
;SendInput, -
;SendInput, {delete}
;SendInput, {enter}
;sendinput +{down}
;sleep 100
;sendinput ^x
;sleep 100
;sendinput {lalt down}{tab}
;sleep 100
;sendinput {lalt up}
;sleep 200
;sendinput ^v
;sleep 100
; *******************************
; *** Only if WoW is in focus ***
; *******************************
#IfWinActive, World of Warcraft
; *** Makes clones jump with main ***
~Space::ClonesPush("{Space}=")
~^1::ClonesPush("-^1")
~3::ClonesPush("-3")
~F12::ClonesPush("{F12}")
; *** Suspends HotKeys while typing on main ***
;~Enter::Suspend, Toggle
;~/::Suspend, On
;~Escape::Suspend, Off
#IfWinActive