[EMAIL PROTECTED] 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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to