first time to here if i have wrong post to here i am so sorry!
i have script to run and i have set a hotkey to pause it but know i dont know who to resum it(to start it again)
is it the command [continue]???
plz help i am new to scripting
a easyscript quseion
-
- Apprentice Scribe
- Posts: 12
- Joined: Mon Nov 14, 2016 9:03 pm
-
- Passer by
- Posts: 1
- Joined: Wed Nov 22, 2017 12:04 pm
- Contact:
Re: a easyscript quseion
This is the question, I'd like to research online! It's pretty clear! This is not a wrong place to publish!
Re: a easyscript quseion
Hiya,
I'm assuming you are talking about EasyUO script, if that's the case, the command "pause" resumes when you play the script again. If you want a script you can pause and resume by a hotkey, it's easy to do with a loop sub that is called when the hotkey is pushed and only polls for the hotkey to resume.
Something like:
You might need that wait in the sub before the loop to avoid EasyUO from returning to the mainloop asap if you use the same hotkey for pausing and resuming.
I'm assuming you are talking about EasyUO script, if that's the case, the command "pause" resumes when you play the script again. If you want a script you can pause and resume by a hotkey, it's easy to do with a loop sub that is called when the hotkey is pushed and only polls for the hotkey to resume.
Something like:
Code: Select all
; Somewhere in the mainloop:
onhotkey %hotkey
gosub Paused
...
sub Paused
; wait 2s
while #True
{
onhotkey %hotkey
break
}
return