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.

Need EG to detect text string in a text file

If you have a question or need help, this is the place to be.
Post Reply
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

Need EG to detect text string in a text file

Post by dmehling »

Is there a way to trigger an action based on the appearance of a specific string of text in a text file. For example, I have another macro that will copy a string of text and paste into that text file. I need EG to be able to detect a specific string of text and perform an action if it is the correct text. Can this be done?
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Need EG to detect text string in a text file

Post by Livin »

search is your friend.

...you'll need to create a python script

http://www.eventghost.org/forum/viewtop ... 2c3#p11055
http://www.eventghost.org/forum/viewtop ... 2c3#p20052

... or use the plugin:
http://www.eventghost.org/forum/viewtop ... a2c3#p8599



... and then set a trigger to run it: desired time interval, detected file change (Directory Watcher plugin), etc
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
Post Reply