AutoHotKey infinite while loop
Is there a way to create something like this in AutoHotKey?
bool isReady = false;
while (!isReady) {
// Do something here
isReady = true;
}
I tried to experiment with the While loop, but it ended up in just one loop, regardless of the condition I provide to the program. I am currently using version 1.0.47.06.
I read the documentation here: http://www.autohotkey.com/docs/commands/While.htm I tried to give the while loop a true value. But it was executed only once. (I expected it to loop forever until I finished the script).
condition := true
while (condition)
{
MsgBox, condition
}
while (true)
{
MsgBox, true
}
+3
source to share
2 answers
Your code is correct, but the command While
requires version 1.0.48+.
You should update to the latest version of AHK here - http://ahkscript.org/download/
+3
source to share