When I use for example the Directory Watcher, I get events like these to show up in the log:
"DirectoryWatcher.Updated (u'C:\\Users\\jand\\Desktop\\paul.dll',)"
Is there a way in a macro to check what file was updated?
What I want to do is: when a .rar file is put into a certain directory, EventGhost should start an unrar program with the name of the file as a command line parameter so it unrars that specific file.
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 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.
Event parameters?
Re: Event parameters?
http://www.eventghost.org/wiki/Scripting
DirectoryWatcher.Updated (u'C:\\Users\\jand\\Desktop\\paul.dll',)
The bit in bold is what's known as event payload. You can access it from a python script/command by using the eg.event.payload variable. Note that you can also trigger events from inside python scripts with the eg.TriggerEvent(), which is often useful.
And yep, the unraring script should not be difficult to make, have fun coding.
DirectoryWatcher.Updated (u'C:\\Users\\jand\\Desktop\\paul.dll',)
The bit in bold is what's known as event payload. You can access it from a python script/command by using the eg.event.payload variable. Note that you can also trigger events from inside python scripts with the eg.TriggerEvent(), which is often useful.
And yep, the unraring script should not be difficult to make, have fun coding.
Re: Event parameters?
Thanks for your fast reply! Got it working with a minimum of Python scripting...
-
merdok1981
- Posts: 8
- Joined: Wed Dec 16, 2009 12:53 am
Re: Event parameters?
Any chance you could share your code for this? I've no clue how to code in Python so it would be a great help. 