[python-win32] Getting window title
k s
kar_py@ureach.com
Fri, 26 Apr 2002 17:54:04 -0400
hi,
i have a python script which starts word and internet
explorer using COM. i also have a clipboard monitoring script.
i am able to get the handle to the current owner of the
clipboard, but using that i am not able to get the window title
(i tried using GetWindowText() method). the window title which
is returned is a null string.
my piece of code looke something like this.
def GetClipboardOwnerByName():
hwnd = win32clipboard.GetClipboardOwner()
title = win32gui.GetWindowText(hwnd)
print title
return title
any suggestions??
thank you
karthik
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag