By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,731 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,731 IT Pros & Developers. It's quick & easy.

Win XP "Sleep" mode: can Py wake up?

P: n/a
Does anyone have any experience having python deal with sleep mode? I'd
love to run something that would hear a sleep event coming and pickle
some data before sleep, then after coming out of sleep, unpickle...

Any thoughts?
Jan 26 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Does anyone have any experience having python deal with sleep mode? I'd
love to run something that would hear a sleep event coming and pickle
some data before sleep, then after coming out of sleep, unpickle...
It should, in theory, be possibly by trapping the WMI
Win32_PowerManagementEvent event. I haven't time
to try it out at the moment, unfortunately. Alternatively,
the WM_POWERBROADCAST message looks hopeful
if you wanted to go the Message Loop route.

TJG

Jan 26 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.