forked from PProvost/AutoHotKey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpamButton.ahk
121 lines (107 loc) · 1.46 KB
/
SpamButton.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#ifWinActive World of Warcraft
{
; The following script is run when the user presses the '1' key
; and will loop until the 1 key is no longer pressed, sending
; 1 over and over every delay miliseconds. To use a different
; key, replace all three 1s with the key you want repeated.
delay := 100
$1::
Loop
{
if not GetKeyState("1", "P")
break
Send 1
Sleep delay
}
return
$2::
Loop
{
if not GetKeyState("2", "P")
break
Send 2
Sleep delay
}
return
$3::
Loop
{
if not GetKeyState("3", "P")
break
Send 3
Sleep delay
}
return
$4::
Loop
{
if not GetKeyState("4", "P")
break
Send 4
Sleep delay
}
return
$5::
Loop
{
if not GetKeyState("5", "P")
break
Send 5
Sleep delay
}
return
$6::
Loop
{
if not GetKeyState("6", "P")
break
Send 6
Sleep delay
}
return
$7::
Loop
{
if not GetKeyState("7", "P")
break
Send 7
Sleep delay
}
return
$8::
Loop
{
if not GetKeyState("8", "P")
break
Send 8
Sleep delay
}
return
$9::
Loop
{
if not GetKeyState("9", "P")
break
Send 9
Sleep delay
}
return
$0::
Loop
{
if not GetKeyState("0", "P")
break
Send 0
Sleep delay
}
return
$-::
Loop
{
if not GetKeyState("-", "P")
break
Send -
Sleep delay
}
return
}