by trixmoto » Sun Jan 03, 2010 5:34 pm
Has anyone used the OnIdle event before? I thought it might do what I want but I'm struggling to control it. If I register it then it certainly waits until the rest of my script has run before it fires, but then it fires several thousands times back to back before stopping after a seemingly random number of fires.
How can I make it fire only once? For the timer event the object is passed in so that you can cancel it, but how do I cancel a specific OnIdle event?
Also, I've tested this whilst the file monitoring and volume analysing is going on, assuming that the event would not fire due to these tasks running, but it still fires. So when exactly is MM considered idle? Is it just when there are no scripts running code?
Any insights would be gratefully received!

Has anyone used the OnIdle event before? I thought it might do what I want but I'm struggling to control it. If I register it then it certainly waits until the rest of my script has run before it fires, but then it fires several thousands times back to back before stopping after a seemingly random number of fires.
How can I make it fire only once? For the timer event the object is passed in so that you can cancel it, but how do I cancel a specific OnIdle event?
Also, I've tested this whilst the file monitoring and volume analysing is going on, assuming that the event would not fire due to these tasks running, but it still fires. So when exactly is MM considered idle? Is it just when there are no scripts running code?
Any insights would be gratefully received! :)