Hi Tim,
Thanks a lot. I'll look into it. On 10/19/2010 11:30 AM, Tim Golden wrote: > On 19/10/2010 10:06, Gelonida wrote: >> I'd like to be notified about certain events and call certain python >> functions depending on the event. >> >> call a function: >> - before (or after) the screen saver kicks in . . . >> - before (or after) the screen saver was stopped > > This should take you a certain amount of the way: > > http://timgolden.me.uk/python/win32_how_do_i/track-session-events.html > > I honestly don't know if the OS even knows when the monitor's > switched on / when the disk is spun up. > > WMI has some power events: > > http://msdn.microsoft.com/en-us/library/aa394362%28v=VS.85%29.aspx > > > http://timgolden.me.uk/python/wmi/cookbook.html#monitor-multiple-machines-for-power-events > > -- http://mail.python.org/mailman/listinfo/python-list