Win32: Detecting when system is locked or sleeping
Tim Golden
tim at timgolden.me.uk
Mon Aug 27 04:45:17 EDT 2007
Muhammad_Shiraz at Dell.com wrote:
> I saw your post on the net. We are having a similar problem. Did you
> ever find out how to detect system lock?
I can't seem to see the original post you're referring to
(reading this via the mailing list) but assuming that by
"locked" you mean: Ctrl-Alt-Del locked, then you can try
this technique:
http://timgolden.me.uk/python/win32_how_do_i/see_if_my_workstation_is_locked.html
and assuming that by "sleeping" you mean: in standby mode, then
you might be able to adapt this:
http://timgolden.me.uk/python/wmi_cookbook.html#monitor-multiple-machines-for-power-events
TJG
More information about the Python-list
mailing list