List Info

Thread: Detect Screensaver




Detect Screensaver
user name
2006-05-31 06:58:46
Hey All,

I have a strange problem with my application not showing
some static
bitmaps if the panel they are on is re-drawn while the
screensaver is
active on Win32.

Is there a way from python to determine whether the
screensaver is
active? Alternatively should my application not redraw while
it does not
have focus?

The application is a temperature graphing application.

Regards
Darryl


Detect Screensaver
user name
2006-05-31 07:49:53
Darryl Ross пишет:
> Hey All,
> 
> I have a strange problem with my application not
showing some static
> bitmaps if the panel they are on is re-drawn while the
screensaver is
> active on Win32.
> 
> Is there a way from python to determine whether the
screensaver is
> active? 

winapi-function
SystemParametersInfo(SPI_GETSCREENSAVEACTIVE,0,true,0);
return true, if screensaver is running.
You can create pyd-module for checking.


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org

Detect Screensaver
user name
2006-05-31 17:00:26
Dmitriy Baranov wrote:
> Darryl Ross пишет:
>> Hey All,
>>
>> I have a strange problem with my application not
showing some static
>> bitmaps if the panel they are on is re-drawn while
the screensaver is
>> active on Win32.
>>
>> Is there a way from python to determine whether the
screensaver is
>> active? 
> 
> winapi-function
> SystemParametersInfo(SPI_GETSCREENSAVEACTIVE,0,true,0);
> return true, if screensaver is running.
> You can create pyd-module for checking.

If you've got Mark Hammond's win32 extensions (or
Activestate Python, 
which includes them), you already have access to this in
module win32gui.

-- 
Don Dwiggins
Advanced Publishing Technology


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org

Detect Screensaver
user name
2006-05-31 19:50:30
Darryl Ross wrote:
> Hey All,
> 
> I have a strange problem with my application not
showing some static
> bitmaps if the panel they are on is re-drawn while the
screensaver is
> active on Win32.

So are they not getting a paint event when the screensaver
stops?


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java
give you jitters?  Relax with wxPython!


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )