Jump to content
Sign in to follow this  
JBB

Execute after resume from standby

Recommended Posts

JBB

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

Share this post


Link to post
Share on other sites
JohnBailey

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

Share this post


Link to post
Share on other sites
JBB

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

Share this post


Link to post
Share on other sites
JohnBailey

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.