JBB Posted October 15, 2007 Posted October 15, 2007 I'm trying to run a script/program after a laptop resumes from standby. Is there any way to do this, I can't figure out how? Thanks in advance. JBB
JohnBailey Posted October 15, 2007 Posted October 15, 2007 I'm trying to run a script/program after a laptop resumes from standby. Is there any way to do this, I can't figure out how?Thanks in advance.JBBI haven't tested, but does this help (#403367) ? A decision is a powerful thing
JBB Posted October 15, 2007 Author Posted October 15, 2007 I haven't tested, but does this help (#403367) ?Not directly. I compiled it and tested both with suspend and hibernate, this on an XP box. What I saw was that the function Standby is bing called, but the $wParam is neither of the two cases listed. Instead it was getting the message PBT_APMRESUMEAUTOMATIC, which is 0x0012. Once I made that change, it works well.ThanksJBB
JohnBailey Posted October 15, 2007 Posted October 15, 2007 Not directly. I compiled it and tested both with suspend and hibernate, this on an XP box. What I saw was that the function Standby is bing called, but the $wParam is neither of the two cases listed. Instead it was getting the message PBT_APMRESUMEAUTOMATIC, which is 0x0012. Once I made that change, it works well.ThanksJBBVery cool indeed Good job! A decision is a powerful thing
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now