Page 1 of 1

if then statement tied to an action?

Posted: Wed May 11, 2011 2:28 pm
by scottbakertemp
I am working on creating my own audio video control system using eventghost, serial cables for RS232 control, usb-uirt for IR control, and a PS3 remote.
I plan on using the write text to file give me a variable of what device the user is watching.

When the user presses the skip button, I would like to read the file:
if the file says 1, then send the Dish DVR skip command
if the file says 2, then send the 360 skip command
etc .......

I see how I can easily write to the file, How do I read the file and tie that to the appropriate action?