im not quite sure what you mean ghosty but if your trying to toggle something i found the best way to do so is to have
$"anykey"::Suspend
say if it was for tv guided repeat you would have
#InstallMouseHook
#InstallKeybdHook
$"anykey"::Suspend
loop
{
GetKeyState, LButtonState, LButton, P
if LButtonState = U
break
sendinput {Click down}
sleep 50
sendinput {Click up}
}
return
what this should do is toggle automatic fire when you press whatever key you assigned it to(it will automatic fire when you press {LButton})
or another way of toggleing is to have
#InstallMouseHook
#InstallKeybdHook
$"anybutton":: ;this will be the toggle
Period := Period = 160 ? "OFF" : 160
SetTimer Click, %Period%
Return
Click: ; this is just the name of the timer
Loop
{
GetKeyState, State, "youchooseabutton", P
if State = U
break
(insert your script here)
}
return
sorry if this didnt help you at all
