if then statement tied to an action?

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
scottbakertemp
Posts: 17
Joined: Sun Nov 28, 2010 7:21 pm

if then statement tied to an action?

Post by scottbakertemp » Wed May 11, 2011 2:28 pm

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?

Post Reply