Re: [python-win32] How to find the current/last system state from Python

2012-07-05 Thread Tim Roberts
prashant padaganur wrote: > > Tim this might be something similar, but what I am looking for is > sleep state. I want the exact api which exposes/returns the > SYSTEM_POWER_STATE enum either thru win32ap or wmi. It's a little difficult to figure out what you want. When the system goes into a sle

Re: [python-win32] Take Screenshot when you log in remotely [Win 7 Pro]

2012-07-05 Thread Tim Roberts
Ferdinand Sousa wrote: > > I have written a script that uses the screenshot() function from the > ImageGrab module of the Python Imaging library and I would like to run > this script as a scheduled task. > > Now for the issues. In the task scheduler, if I select 'Run whether > user is logged on or

Re: [python-win32] How to find the current/last system state from Python

2012-07-05 Thread Roger Upole
"prashant padaganur" wrote in message news:CAFypNu8RuhnRAQXWu5GtFZkuje1Dj-=cnrun7an+uuhjvdo...@mail.gmail.com... >I want to write an application that puts the system in to different sleep > states. Like S0,S1...S4. > > Before changing from one state to another I want to know the > current/previou

Re: [python-win32] How to find the current/last system state from Python

2012-07-05 Thread Roger Upole
"prashant padaganur" wrote in message news:CAFypNu8RuhnRAQXWu5GtFZkuje1Dj-=cnrun7an+uuhjvdo...@mail.gmail.com... >I want to write an application that puts the system in to different sleep > states. Like S0,S1...S4. > > Before changing from one state to another I want to know the > current/previo