Sean Meighan
Software => Xlights Setup => Topic started by: RobertB on October 18, 2014, 05:50:16 AM
-
I have LOR controllers and dmx controllers plus e682 controllers.
I am running a projector in my show along with a new RDS transmitter.
I know how to run the scripts to turn the projector on / off and also for the RDS transmitter to send its text through LOR...but not sure what to do on xLights. Is it even possible to run scripts through xLights?
-
yes, you can run scripts from xlights
I didnt write teh code but you go to Playlist , Custom scripts. If you were looking at a playlist when you do this you will see a basic language script come uo
-
Guess I am using the wrong syntax. Guess it would be a Windows Command file. Like for instance I use a .bin and .bat file to turn my projector on and off. Can xLights do this?
-
If you search on diylightanimation for Xlights 2011c, there is a small note on using a custom script in Xlights (it's #5)... I use it to run a .bat file to change my scrolling led sign (shows song now playing and artist) and send RDS data... This is what #5 says...
There is now an EXEC command available when using scripts. This runs an operating system command. So if you want to write the name of the currently playing sequence to a text file, select Playlist > Custom Script from the xScheduler menu. Then you can do something like on line 225:
220 PRINT "Playing:",ITEMNAME$(NextItem)
225 EXEC "CMD /C ECHO " + ITEMNAME$(NextItem) + " >c:\nowplaying.txt"
230 PLAYITEM NextItem
I can attach what I'm using if you need more info... Hope this helps :)
Dan
-
If you search on diylightanimation for Xlights 2011c, there is a small note on using a custom script in Xlights (it's #5)... I use it to run a .bat file to change my scrolling led sign (shows song now playing and artist) and send RDS data... This is what #5 says...
There is now an EXEC command available when using scripts. This runs an operating system command. So if you want to write the name of the currently playing sequence to a text file, select Playlist > Custom Script from the xScheduler menu. Then you can do something like on line 225:
220 PRINT "Playing:",ITEMNAME$(NextItem)
225 EXEC "CMD /C ECHO " + ITEMNAME$(NextItem) + " >c:\nowplaying.txt"
230 PLAYITEM NextItem
I can attach what I'm using if you need more info... Hope this helps :)
Dan
Hey Dan,
I will have to try this when I get home. I am out of town for a few days.
I can't find the thread on that forum. Can you send me a direct link to that thread?
Thanks
Robert
-
Hi, Ken...
See if this works... You may need to copy and paste in your browser...
http://diylightanimation.com/index.php?topic=6622.0
I think you need to be registered to view, but not sure about that :)
Dan
-
Yes that worked Dan. Still out of town so can't test this.
For the scripts. Can I set those to run just like songs? In other words run a script to turn the projector on at the first and then at the end one to turn off the projector?
Again a newbie at this.
-
Ok,
Here is a link to what I need to do with my projector;
http://doityourselfchristmas.com/forums/showthread.php?26645-How-to-turn-on-projector-remotely/page3
Look to post #27 for the exact post with the .bat and .bin file I will need to run.
So if I use xLights to run my show, I will need to run this .bat and .bin file. How do I do this with xLights?