-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMordhaudueploop.ahk
77 lines (56 loc) · 1.14 KB
/
Mordhaudueploop.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
F11::
Suspend
return
end:: ; press end to stop the loop
breakvar = 1
return
home:: ; Start
Ldelay = 4
keydelay = 35 ; how fast you want to drop your weapons
delay = 5800 ; reconnect time
loop, %Ldelay% {
if breakvar = 1 ; double break to make sure it stops when told to
break
SetKeyDelay, keydelay
send, 1
SetKeyDelay, keydelay
send, g
SetKeyDelay, keydelay
send, 2
SetKeyDelay, keydelay
send, g
SetKeyDelay, keydelay
send, 3
SetKeyDelay, keydelay
send, g
SetKeyDelay, keydelay
send, 4
SetKeyDelay, keydelay
send, g
SetKeyDelay, keydelay
send, 5
SetKeyDelay, keydelay
send, g
SetKeyDelay, 50
SendInput, {PgDn}
SetKeyDelay, 1
send, reconnect
SetKeyDelay, 1
send, {enter}
if breakvar = 1 ; double break to make sure it stops when told to
break
sleep delay
; send, ESC ; for community servers, delete the ; to enable
}
breakvar = 0
return
~Numpad9::
KeyWait, Numpad9
var := A_TimeSinceThisHotkey
if A_TimeSinceThisHotkey > 5000
Ldelay = 3
else
Ldelay = 4
MsgBox, reconnect time %var%ms, will reconnect %Ldelay% times.
Breakvar = 1
return