Home Wiki Codex Forum Donations Portal

a easyscript quseion

Related to the radio station.

a easyscript quseion

Postby icestormeraacc on Mon Nov 14, 2016 9:06 pm

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
Apprentice Scribe
Posts: 12
Joined: Mon Nov 14, 2016 9:03 pm

Re: a easyscript quseion

Postby AshleyCuneo on Wed Nov 22, 2017 12:07 pm

This is the question, I'd like to research online! It's pretty clear! This is not a wrong place to publish!
Passer by
Posts: 1
Joined: Wed Nov 22, 2017 12:04 pm

Re: a easyscript quseion

Postby Shindaril on Fri Nov 24, 2017 5:09 am


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

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.
Master Scribe
Posts: 66
Joined: Tue Jul 01, 2014 12:11 pm

Return to Excelsior Bards

Who is online

Users browsing this forum: No registered users and 1 guest