Apologies this is my first ever script so I hope this request makes sense.
I created this so that when I hold F5, it will repeatedly press F5 very quickly. Here's the script:
$F5:: ;
IfWinActive Ragnarok
{
Loop 1
{
Send {F5} ;
sleep 25
}
}
return
My problem is that when I press another key, the continuous F5 presses stop, even though I'm still holding the F5 key. I was wondering if there's a simple change I can make so that the repeated F5s won't stop when I press other keys...
Thanks in advance
Help with simple script Topic is solved
Re: Help with simple script
Hallo,
"Loop 1" does not make much sense.
Try:
or
"Loop 1" does not make much sense.
Try:
Code: Select all
#IfWinActive Ragnarok
$F5:: ;starts only when Ragnarok is active
Loop
{
Send {F5}
sleep 25
}
Until, !GetKeyState("F5", "P")
return
Code: Select all
$F5::
While, WinActive("Ragnarok")
{ ;stops when Ragnarok is no longer active
Send {F5}
sleep 25
}
Until, !GetKeyState("F5", "P")
return
Re: Help with simple script
It works. Thank you for your help!
Who is online
Users browsing this forum: No registered users and 26 guests