Windows - window status (Running vs Not Responding)
Ross Ridge
rridge at caffeine.csclub.uwaterloo.ca
Fri Apr 11 23:18:04 EDT 2008
rdahlstrom <roger.dahlstrom at gmail.com> wrote:
>Basically, I'm looking for something similar to the Process.Responding
>property in System.Diagnostics...
You probably want to use IsHungAppWindow():
IsHungAppWindow Function
You call the IsHungAppWindow function to determine if
Microsoft Windows considers that a specified application is not
responding. An application is considered to be not responding
if it is not waiting for input, is not in startup processing,
and has not called PeekMessage within the internal timeout period
of 5 seconds.
Syntax
BOOL IsHungAppWindow(
HWND hWnd
);
...
You can use EnumWindows() to enumerate the all the top level windows.
Ross Ridge
--
l/ // Ross Ridge -- The Great HTMU
[oo][oo] rridge at csclub.uwaterloo.ca
-()-/()/ http://www.csclub.uwaterloo.ca/~rridge/
db //
More information about the Python-list
mailing list