Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

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 »

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