Until is not working for loop
Posted: 20 Mar 2017, 16:02
So I am making an auto-AFK script for Minecraft. The script currently just does the following:
I want it to continue doing that until the keybind has been pressed again, but it stays in the loop even if I press the bind a second time. Here's my code:
Any help, please?
Code: Select all
Hold W
Wait 1 second
Release W
Wait 1 second
Hold A
Wait 1 second
...
Code: Select all
toggled=0
^L::
if (toggled=0)
{
toggled=1
Loop
{
Send {w down}
Sleep 1000
Send {w up}
Sleep 1000
Send {a down}
Sleep 1000
Send {a up}
Sleep 1000
Send {s down}
Sleep 1000
Send {s up}
Sleep 1000
Send {d down}
Sleep 1000
Send {d up}
} Until (toggled=0)
}
else
{
toggled=0
}
return