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

2012-07-06 Thread Tim Roberts
prashant padaganur wrote: > > Thanks Tim. But when the system is in S0 state I want to read that > information from the system. You want to read WHAT information from the system? Look, here is a complete Python program that accurately tells you the current power state: print "The system is

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

2012-07-06 Thread prashant padaganur
>>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 syste

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

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 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] How to find the current/last system state from Python

2012-07-04 Thread Tim Golden
On 04/07/2012 06:01, prashant padaganur wrote: > On 03/07/2012 12:23, prashant padaganur wrote: >>>/ > />>/ 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 > />>/ c

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

2012-07-03 Thread prashant padaganur
On 03/07/2012 12:23, prashant padaganur wrote: >>* *>>* 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/previous sleep state. >>*>>* *>>* For Ex: If the cu

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

2012-07-03 Thread Tim Golden
On 03/07/2012 12:23, prashant padaganur wrote: > > 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/previous sleep state. > > For Ex: If the current state is S0 then I

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

2012-07-03 Thread prashant padaganur
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/previous sleep state. For Ex: If the current state is S0 then I want to put it to S1. Or if the previous state was S3 then I want