The title says it all. The script by itself works but i could like to turn the toggle2 and toggle3 into a local var toggle so i can re use it.
Code: Select all
~*!2::
toggle2 := !toggle2
loop {
if (toggle2 = False)
break
if (toggle2 = True)
SendInput, {2}
Sleep, 2000
}
return
~*!3::
toggle3 := !toggle3
loop {
if (toggle3 = False)
break
if (toggle3 = True)
SendInput, {3}
Sleep, 2000
}
return
Thank you for reading