Hi all,
Hoping someone can help me by giving me a starting point / tips for a script I am trying to create, but don't really know how to start. Basically I have a projector and a set top box, and want to be able to have a tablet with icons on it which are the channel icons. I have set up events that work fine, but i want to have a script that checks if the projector is on, and if it is, then it just runs the event, if the projector is off, it runs a turn on event, waits 5 seconds and then triggers the channel event.
What i was thinking was i could call the script with the paramater being the event name the script would run, and it would work like this
Script is called from within HSTOUCH, with the event name for example &hs.runscript("projector.txt","ABC2 / ABC4 (22)")
The script runs, checks the devicevalue V30 (projector-status), if the projector is off (value 2), then the script runs event "projector-on", waits 5 seconds, and then runs the event passed through the params.
If the devicevalue of V30 is 1 (ON) then the script would just pass through the param event to be run and not worry about turning on the projector.
Thanks guys!
Hoping someone can help me by giving me a starting point / tips for a script I am trying to create, but don't really know how to start. Basically I have a projector and a set top box, and want to be able to have a tablet with icons on it which are the channel icons. I have set up events that work fine, but i want to have a script that checks if the projector is on, and if it is, then it just runs the event, if the projector is off, it runs a turn on event, waits 5 seconds and then triggers the channel event.
What i was thinking was i could call the script with the paramater being the event name the script would run, and it would work like this
Script is called from within HSTOUCH, with the event name for example &hs.runscript("projector.txt","ABC2 / ABC4 (22)")
The script runs, checks the devicevalue V30 (projector-status), if the projector is off (value 2), then the script runs event "projector-on", waits 5 seconds, and then runs the event passed through the params.
If the devicevalue of V30 is 1 (ON) then the script would just pass through the param event to be run and not worry about turning on the projector.
Thanks guys!
Comment