How to save a string of commands

Help each other out

How to save a string of commands

Postby Bill Lott on Sun Jan 16, 2005 3:43 am

I have a 300 disc DVD jukebox that I use with xLobby. Thanks to Steve and others I'm now able to select and play a DVD using the "Play" button on a skin if I add the following commands under the Movie Play event.

(Lights)X-10
13
(Lights)X-10
On
Wait
(Receiver)
Power On
Wait
(Big Screen)
On
Wait
(Jukebox)
On
Wait
(Receiver)
Theater
Wait
(Jukebox)
Stop
Wait
(Jukebox)
Stop
Wait
(Jukebox)
Stop
Wait
(Jukebox)
Search
Wait
- SEND NUMBER
(Jukebox)
%movies>collectionNumber%
(Jukebox)
Play
Wait
Wait
(Jukebox)
Enter
Goto screen
Menu


As I like to experiment with different skins; is there a way to save the attached commands (maybe as a seperate event) and easily add it to different skins without having to open the event editor and entering each command line one at a time?

Thanks...
Bill
Bill Lott
 
Posts: 293
Joined: Sun Sep 05, 2004 3:25 pm
Location: Louisville, KY

Postby Colby on Sun Jan 16, 2005 5:04 am

The beauty of the event manager, (after 40alpha 9 months ago) is that the events are saved in skin specific event groups. So that means you can add your custom events, to xlobby and they will be there with the skin's events. Now, there are a few things you could do to do to implement your custom event.

1st note that any event in the event manager not in the skin eventgroup will not have priority. Skingroup events override xlobby events.

2nd assuming your long long order of commands makes up your single play event, I would do one of two things,
A. I would label the event PLAY MOVIE, and Not save it in the skin eventgroup. Then upon new install of a skin, you could just attach your play movie event to the button, of choice in the skin editor. or
B. I would copy and paste from one xml to the other, in notepad, to replace the commands of the play movie event.

You will find the events, (yours included) in the eventgroups folder of the skins.

Looking at your chain of commands I wonder; why so many waits? Doesnt unchecking multithreaded do the trick or have you tried that?

If none of this helps I can probably think up other ideas.
Colby
 
Posts: 929
Joined: Mon Feb 02, 2004 7:42 am
Location: Brookline Station, MO, USA

Postby Bill Lott on Sun Jan 16, 2005 3:10 pm

Thanks Colby.

With my limited (lack of) programming skills, it is not uncommon for me to find the most complicated way to perform otherwise easy events!

The purpose of the wait statements is to give the equipment time to turn on before issuing a command to change inputs, etc..

Again; if there is an easier way, please let me know. Thanks for your help and willingness to help others in xLobby.

Love the skins!
Bill
Bill Lott
 
Posts: 293
Joined: Sun Sep 05, 2004 3:25 pm
Location: Louisville, KY