creating a loop
Posted: 21 Feb 2018, 06:29
Hi all, this is my first post here and i would like to thank anyone for the answer.
i am in need of a loop:
This is what i am using now:
$1::
Loop
{
if not GetKeyState("1", "P")
break
Send 1
sleep 30
}
return
$2::
Loop
{
if not GetKeyState("2", "P")
break
Send 2
sleep 30
}
return
$3::
Loop
{
if not GetKeyState("3", "P")
break
Send 3
sleep 30
}
return
$4::
I would like to press the key one time and the loop goes on until i press the same key again or an other key, If i press an other key the other loop starts. Is it possible?
Thank you
i am in need of a loop:
This is what i am using now:
$1::
Loop
{
if not GetKeyState("1", "P")
break
Send 1
sleep 30
}
return
$2::
Loop
{
if not GetKeyState("2", "P")
break
Send 2
sleep 30
}
return
$3::
Loop
{
if not GetKeyState("3", "P")
break
Send 3
sleep 30
}
return
$4::
I would like to press the key one time and the loop goes on until i press the same key again or an other key, If i press an other key the other loop starts. Is it possible?
Thank you