and setting it to toggle but apparently, I've messed something up. The code is below and I have used this toggle code before (but with different commands inside) and it worked perfectly now it doesn't and it shows up the error "This variable has not been assigned a value" I'm sure it is a simple and easy to fix problem but I cannot figure it out for the life of me
Code: Select all
#NoEnv
#Warn
SendMode Input
SetWorkingDir %A_ScriptDir%
*e::
toggle := !toggle
if (toggle) {
SendInput {t}
SendInput {r}
SendInput {o}
SendInput {l}
SendInput {l}
SendInput {Enter}
return
}