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.
I was looking through EventGhost log to figure out what happened when a system I set up did not properly wake up at the specified time. Below is the log. Computer was placed on Stand By at 10:32pm. At 9:27am the computer resumed on its own, but then the Stand By command was immediately issued afterwards. I use the power button on the computer itself to turn it on (haven't figured out how to turn it on with the remote yet), but use the Power button on an MCE remote to place it on standby. Was the stand by command at 9:27am from the previous night? How can I prevent this from happening in the future?
10:32:22 PM MceRemote.Power
10:32:22 PM Power -> Alt+F4
10:32:22 PM Stand By
10:32:22 PM System.QuerySuspend
10:32:22 PM System.Suspend
9:27:16 AM System.ResumeAutomatic
9:27:16 AM MceRemote.Power
9:27:16 AM Power -> Alt+F4
9:27:16 AM Stand By
9:27:16 AM System.QuerySuspend
9:27:32 AM System.Suspend
12:33:56 PM System.ResumeAutomatic
12:33:56 PM System.Resume
12:34:56 PM System.Idle
1:55:52 PM System.UnIdle
setup: windows 7 + EventGhost 0.5.0-rc4 + Intel nuc6i5syh
Thanks. I'm not sure where I would place that command. The "Clear pending events" action you mention says it should be placed at the end of the macro. I was testing it out, and I put this action right before the actual action I want (which is put the computer into Standby). I tested with the following code below (have to test with keyboard since I don't have access to a remote right now), which seemed to work properly. I added the 1.0s wait time so that the user has time to stop pressing the button, executes the action, and then I guess Clear Pending Events gets rid of everything else. Is this a reasonable approach?
Yep, sounds like it should do the trick. I was somehow thinking about running it as the first action after resume, but it might be better to run it just before. Perhaps you could make a new macro for the clear pending events action and trigger it with the System.Suspend event?
Either way the idea is to clear the events so they don't get executed later after the resume.