cancelling events in progress?

Help each other out

cancelling events in progress?

Postby VRS-1 on Mon Jan 29, 2007 9:53 pm

Hello again,

Now I'm getting down into the more complicated issues, and was wondering if anyone had solved this one:

I need to be able to cancel events that are already in progress, if possible.

I've got "scene" type events, that say... dim the lights, start a video, start some audio, waft some pleasant scents at you, slowly turn up the volume, then back down again in 10 minutes... dim the lights back up, etc.

But if you start one of these, it's off to the races, and there doesn't seem to be a way to STOP the commands within the event that haven't happened yet... other than restarting XLobby.

So the question is, is there another way to cancel these events? Alternately, is there a way to restart XLobby (like the restart button in the skins menu does) via an event? I know I can close it via an event, but then to get it running again I'd have to have an external program set up to watch and make sure it was running, and to run it if it wasn't, etc. blegh.

Thanks for any advice / info!

-VRS
VRS-1
 
Posts: 13
Joined: Wed Jan 03, 2007 5:32 pm

Postby dalanik on Tue Jan 30, 2007 8:31 am

The way I do it for some things (i.e. now playing screens which cycle) is that I use XScript to run the xlobby events, and this script is checking every couple of seconds if a variable has a value of 1. If it does, it cancels (exits) the script. The variable is set via buttonpress.

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby VRS-1 on Tue Jan 30, 2007 7:50 pm

That sounds pretty good. I've got the XScriptNG plugin... I'll just have to dig in and give it a go. Thanks.
VRS-1
 
Posts: 13
Joined: Wed Jan 03, 2007 5:32 pm