a easyscript quseion

Related to the radio station.
Post Reply
icestormeraacc
Apprentice Scribe
Posts: 12
Joined: Mon Nov 14, 2016 9:03 pm

a easyscript quseion

Post by icestormeraacc »

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
AshleyCuneo
Passer by
Posts: 1
Joined: Wed Nov 22, 2017 12:04 pm
Contact:

Re: a easyscript quseion

Post by AshleyCuneo »

This is the question, I'd like to research online! It's pretty clear! This is not a wrong place to publish!
Shindaril
Grandmaster Scribe
Posts: 96
Joined: Tue Jul 01, 2014 12:11 pm

Re: a easyscript quseion

Post by Shindaril »

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:

Code: Select all

; Somewhere in the mainloop:
onhotkey %hotkey
    gosub Paused

...

sub Paused
    ; wait 2s
    while #True
    {
        onhotkey %hotkey
            break
    }
    return
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.
Post Reply