Jump to content

Recommended Posts

Posted

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

Posted

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

I haven't tested, but does this help (#403367) ?
A decision is a powerful thing
Posted

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.

Thanks

JBB

Posted

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.

Thanks

JBB

Very cool indeed :) Good job!

A decision is a powerful thing

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...