Code: Select all
{
s::
toggle := !toggle
if toggle
Send {2}
else
Send {3}
return
$1:: ; $ to prevent endless loop
toggle := false ; reset the (boolean) variable toggle
return
}
[Mod edit: Moved topic from 'Ask for Help (2) > Gaming' to v1 help since this is v1 code.]