I'm trying to wake a HTPC in the middle of the night to do some software updates. Problem is, the software mute has to be in place before the computer wakes up, because the short delay between actual waking and the eventghost waking up event is long enough to let some sound out.
So I figure I need to mute the machine every time it goes to sleep, then unmute it 1 second after waking ONLY IF the software update program IS NOT running.
state: muted
when waking from standby, do:
wait 1 second in case software update is starting
if software update is detected, then end
if software update is not detected, then unmute.
But the problem is that eventghost macros aren't multithreaded, and I'm using it to both run the software updates AND check if the software updates are running. So while the above macro would run, another macro would have to run that does the updates... and I don't think that is possible with eventghost. (The operation of one macro blocks the operation of another. I cannot run a macro waiting for a program to end while simultaneously watching for when it ends)
What are my options here? Can eventghost do this, or do I need to run another session of a macro program, or is the python support in eventghost the way to go?