win32gui.FindWindow problems
Mark Hammond
MarkH at ActiveState.com
Fri Nov 10 22:40:42 EST 2000
Dale Strickland-Clark wrote:
> I can't make it work either. It's not clear from the docs how to specify a NULL for the first arg -
> which is what I think you need. I tried 0 and None but both crash Python.
None as the first param is indeed passing NULL to the API - the API is
what is crashing with that NULL :-( Indeed the API documentation does
not state NULL is OK.
>>> win32gui.FindWindow("ConsoleWindowClass", "Command Prompt")
131402
The class name can be determined from spy++.
Mark.
More information about the Python-list
mailing list