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.

How to wait without memorizing the events?

If you have a question or need help, this is the place to be.
Post Reply
nbarraille
Posts: 1
Joined: Mon Mar 22, 2010 6:16 pm

How to wait without memorizing the events?

Post by nbarraille »

Hello all :)

I'm pretty new with EventGhost and I tried (as a lot of people apparently from what I saw) to use the DirectoryWatcher plugin to automatically organize my torrents downloads, but I'm having a problem.

Here are the macros I use:
Image

When the torrent I am processing contains several files (like the songs of an album, or the episodes of a TV Show season for example), my first script moves all those files to my TVShow folder for example that is scruted by my DirectoryWatcher2, I got a first DirectoryWatcher2.created event for the first file that runs the wait, but during this wait I have several similar events (one for each file) that are kept in memory, so basically the renameTVShows macro is ran as many times as there are files, it does what I need the first time, and it is useless every other time (and of course the same thing happens for my updateXBMCLibrary(TV) macro).

Is there a way I can set up EventGhost to ignore the same events happening during my waiting times? I don't want to ignore all events, but just the DirectoryWatcher2 (in this case) so the ClearPendingEvents doesn't work (I think).

EDIT: Actually, if you know how to access the stack of received events I can make a script that remove what I want from the stack, but atm the only event I know how to access is eg.event, but that's not enough.
Thanks a lot!
Post Reply