I'm trying to make a GUI that toggles on/off various hotkeys. This is what I've come up with so far:
Code: Select all
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
SetTitleMatchMode, 2
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
;OPTIMIZATIONS END
; title
GUI, Show, w250 h50, Blaster
;SGP toggle
GUI, Add, CheckBox, vSGP gCheck, SGP
return
;Subroutines
GuiClose:
ExitApp
Check:
Gui, Submit, NoHide
return
;Combos
#if SGP
v::
{
while GetKeyState(A_ThisHotkey)
{
SendInput, o]
Sleep, 8
SendInput, {space}
Sleep, 27
}
}