Skip to content

Commit 3b377f1

Browse files
authored
tysm Descolada it finally works
yay
1 parent e76d28f commit 3b377f1

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

source.ahk

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
clicks = 1
1+
clicks := 1
2+
previousHotkey := ""
23

34
Gui, Add, Text, x25 y20 w90 h20, Clicks per click
45
Gui, Add, Edit, x25 y50 w90 h20 number vclicks, 2
5-
Gui, Add, Text, x141 y20 w90 h20, Stop Cheat Hotkey
6-
;Gui, Add, Hotkey, x141 y20 w90 h20, F5
7-
Gui, Add, Text, x141 y50 w90 h20, WIP (F5 for now)
8-
Gui, Add, Button, x25 y80 w200 h20, Start
6+
Gui, Add, Text, x141 y20 w90 h20, Stop Hotkey
7+
Gui, Add, Hotkey, x141 y50 w90 h20 gStopKey vStopKey
8+
Gui, Add, Button, x25 y80 w207 h20, Start
99
Gui, Add, Text, x80 y110, Made by Banaanae
1010
Gui, -MaximizeBox
1111
Gui, Show, h140 w256, Cheat Clicker
1212
Return
1313

1414
ButtonStart:
15-
GuiControlGet, clicks
15+
if (StopKey = "")
16+
MsgBox, 36, Alert, You have not set a stop hotkey!`nWithout a stop hotkey it may be hard to stop cheat clicking`nSet one now?`nUse tab for the arrow keys to select and press enter to submit
17+
IfMsgBox, Yes
18+
Return
1619
WinMinimize, Cheat Clicker
20+
GuiControlGet, clicks
1721
Return
1822

1923
GuiClose:
@@ -26,7 +30,16 @@ Loop %clicks% {
2630
}
2731
Return
2832

29-
F5::
33+
StopKey:
34+
if previousHotkey
35+
Hotkey, %previousHotkey%, Off
36+
if !StopKey
37+
Return
38+
Hotkey, %StopKey%, Reset, On
39+
previousHotkey := StopKey
40+
Return
41+
42+
Reset:
3043
clicks = 1
3144
WinActivate, Cheat Clicker
3245
Return

0 commit comments

Comments
 (0)