[Psi-devel] Re: SystemWatch
michalj at prioris.mini.pw.edu.pl
Wed Jan 5 21:41:09 PST 2005
James.CHALDECOTT at oxinst.co.uk napisał(a):
> Remko Troncon wrote:
>>I put up a new SystemWatch module for Cutestuff. Currently, it emits
>>signals when your machine goes to sleep (either forced or due to idle
>>time), and when it wakes up. (...)
>>Anyway, to come to my point: the SystemWatch class only has an
>>implementation for MacOS. It would be nice if there was some Windows
>>implementation and some implementation for Unices too.
> I could easily do the logic for a Win32 implementation to this. All you have
> to do is respond to the WM_POWERBROADCAST message.
Heh... Someone is willing to do the job I wanted to do since end of
August or beginning of September (search through Psi-devel for
"Emergency exit" button thread). But as I lack of any free time (I have
to shorten by 6 hour long sleeps if I want to meet my friends), maybe
it's better for Psi someone else do it?
You may additionally listen for WM_QUERYENDSESSION message (broadcasted
when system is going down or user logs out).
More information about the Psi-devel-affinix.com