-
Notifications
You must be signed in to change notification settings - Fork 10
/
Hotkeys.ahk
50 lines (44 loc) · 1.73 KB
/
Hotkeys.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
IniRead, Start, %A_ScriptDir%\timers\Hotkeys.ini, Hotkeys, Start
IniRead, Stop, %A_ScriptDir%\timers\Hotkeys.ini, Hotkeys, Stop
IniRead, Currency, %A_ScriptDir%\timers\Hotkeys.ini, Hotkeys, Currency
IniRead, Decks, %A_ScriptDir%\timers\Hotkeys.ini, Hotkeys, Decks
IniRead, End, %A_ScriptDir%\timers\Hotkeys.ini, Hotkeys, End
Gui, -MaximizeBox -MinimizeBox
Gui, Add, Text, x12 y19 w130 h30 , Start Flasks
Gui, Add, Text, x12 y59 w130 h30 , Stop Flasks
Gui, Add, Text, x12 y99 w130 h30 , Use Currency on inventory
Gui, Add, Text, x12 y139 w130 h30 , Open decks
Gui, Add, Text, x12 y179 w130 h30 , Spam Currency (linking)
Gui, Add, Text, x12 y219 w130 h30 , Abrubtly end any function
Gui, Add, Hotkey, x152 y19 w180 h30 vStart, %Start%
Gui, Add, Hotkey, x152 y59 w180 h30 vStop, %Stop%
Gui, Add, Hotkey, x152 y99 w180 h30 vCurrency, %Currency%
Gui, Add, Hotkey, x152 y139 w180 h30 vDecks, %Decks%
Gui, Add, Edit, x152 y179 w180 h30 -VScroll +ReadOnly vSpam, SHIFT+Pause/break
Gui, Add, Hotkey, x152 y219 w180 h30 vEnd, %End%
Gui, Add, Button, x12 y259 w130 h30 gSave, Save
Gui, Add, Button, x182 y259 w130 h30 gCancel, Cancel
Gui, Show, w346 h300, Hotkeys
return
GuiClose:
ExitApp
Save:
Gui, Submit, NoHide
GuiControlGet, Start
GuiControlGet, Stop
GuiControlGet, Currency
GuiControlGet, Decks
GuiControlGet, Spam
start := Start
stop := Stop
currency := Currency
decks := Decks
spam := Spam
IniWrite, %start%, %A_ScriptDir%\timers\Hotkeys.ini, Hotkeys, Start
IniWrite, %stop%, %A_ScriptDir%\timers\Hotkeys.ini, Hotkeys, Stop
IniWrite, %currency%, %A_ScriptDir%\timers\Hotkeys.ini, Hotkeys, Currency
IniWrite, %decks%, %A_ScriptDir%\timers\Hotkeys.ini, Hotkeys, Decks
IniWrite, %end%, %A_ScriptDir%\timers\Hotkeys.ini, Hotkeys, End
ExitApp
Cancel:
ExitApp