-
Notifications
You must be signed in to change notification settings - Fork 0
/
Clicker Games.ahk
58 lines (49 loc) · 1.03 KB
/
Clicker Games.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
#MaxThreadsPerHotkey 2
SetMouseDelay 1
keepRunning:=0
totalClicks:=0
; Oh shit moment - if something goes wrong, shift should stop all the loops.
; also put ~shift instead of shift or it'll mess with you really hard
; why? Need to look up.
Shift::
keepRunning:=0
return
; Per IRC use SetTImer (http://ahkscript.org/docs/commands/SetTimer.htm)
; with settimer all you need is 3 hotkeys each with a settimer, label, % (running = !running) ? varying time (0 or 10 or 100) : "Off"
F8::
keepRunning:=!keepRunning
$~lbutton::
while (getKeyState("lbutton", "P") AND (keepRunning=1))
{
send, {lbutton}
}
return
return
F10::
keepRunning:=!keepRunning
SetMouseDelay 0
while (keepRunning=1)
{
; totalClicks++
MouseClick
}
return
F11::
keepRunning:=!keepRunning
SetMouseDelay 10
while (keepRunning=1)
{
; totalClicks++
MouseClick
}
return
F12::
keepRunning:=!keepRunning
SetMouseDelay 100
while (keepRunning=1)
{
; totalClicks++
MouseClick
}
return
Esc::ExitApp