I want to create a loop which loops a code until for example f2 is pressed.
So I tried something with _IsPressed but it doesn't work.
Local $test =
WinActivate("Notepad")
Do
Send("hi")
Until _IsPressed("72", $test)
I don't know how I can do nothing when pressing f2 because it says "error: _IsPressed(): undefined function.".
I did put
Send("hi")
after Local $test = but it gives the same error.
Does anyone know how to solve