-
Notifications
You must be signed in to change notification settings - Fork 0
/
MouseReminder.ahk
83 lines (61 loc) · 1.62 KB
/
MouseReminder.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
#NoEnv
Gui, Show , w500 h300, Silent's Mouse Reminder
;Script GUI Title;
;GUI OPTIONS
Gui, Add, Text, x20 y10 w160 Left,How often to check NMZ?
;;;;;;;;Countdown to the next click;;;;;;;;;;;;
Gui, Add, Edit, x120 y30 h19 w40 vNUMBER Left,
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;The Actual clickable button;;;;;;;;;;;;
Gui, Add, Button, w80 h20 x20 y30 vMYBUTTON2 gCountdown ,Countdown
Gui, Add, Text, x20 y150 w250 Left,Press the Esc button to exit the program.
Gui, Add, Text, x20 y180 w250 Left,Press the P button to Pause the script.
return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;End of the GUI;;;;;;;;;;;;;;;;;
Countdown:
{
Gui, Submit, NoHide
numberofloops := NUMBER
Counter = %numberofloops%
Loop 50000
{
{
Counter -= 1
ToolTip, %Counter%
If (Counter = 2){
MsgBox , , CHECK RUNESCAPE, CHECK RUNESCAPE , 1
}
RandomSleep(1000,1000)
If (Counter = 0){
numberofloops := NUMBER
Counter = %numberofloops%
;Counter := %numberofloops%
;break ; this will break the loop
}
}
}
return
}
return
Pause:
Suspend Permit
keywait, p
Pause, Toggle
return
Random(min,max) {
Random, out, %min%, %max%
return out
}
Ran(Num)
{
Random, r, -1*Num, Num
Return r
}
RandomSleep(min,max)
{
Random, random, %min%, %max%
Sleep %random%
}
esc::exitapp