pythonwin, GetWindowText hangup & more
Neil Hodgson
nhodgson at bigpond.net.au
Mon May 20 02:59:16 EDT 2002
Miki Tebeka:
> I took the win32gui_taskbar.py demo and changed it a bit.
> In the loop starting at line 80 there is a hangup when calling
> GetWindowText. When I run this code isolated it seems to work find.
>
> Any ideas?
Avoid calling GetWindowText on the BeeKiller window itself as you are in
a busy loop, therefore not handling messages, therefore not responding to
the WM_GETTEXT message sent to discover your own text.
for w in windows:
if w != hwnd:
title = GetWindowText(w)
> And another question:
> How do I get process id from hwnd? (Can't see GetWindowThreadProcessId
> in win32api)
Can't recall.
Neil
More information about the Python-list
mailing list