but how do you pause a loop and the resume again to there it paused?
i tried googling for answers but it gets complicated every search!
I just want to pause my loop and then resume it with a keypress(like toggle)
like this:
Code: Select all
#Persistent
#SingleInstance, Force
#NoEnv
q:=0
Stopper = FALSE
$F1::
Loop, 10
{
If STOPPER = FALSE
{
ToolTip, %q%
Sleep, 250
ToolTip
q++
Sleep 1000
}
ELSE If STOPPER = TRUE
{
}
}
Return
$F2::
if toggle := !toggle
{
STOPPER = TRUE
ToolTip, OFF
Sleep, 250
ToolTip
}
else
{
STOPPER = FALSE
ToolTip, ON
Sleep, 250
ToolTip
}
Return
F2 is the pause/play thingy
but if i press F2, it does pause the loop, but doesnt resume it.
again im sorry for this stupid question, im just frustrated lol