win32gui

Gandalf goldnery at gmail.com
Sat Jan 3 22:10:47 CET 2009


Hi,
I'm trying to capture the text word under the user cursor,
so I was searching the win32 lib for functions I can use.
i used this to fined the controller under the cursor
win32gui.WindowFromPoint(win32gui.GetCursorPos())
 to get the controller, but then when I try to read the text with this
GetWindowText function it most of the time doesn't work, all the
"getline" methon like the following didn't worked in most of the time
too
win32gui.SendMessage(hwnd, win32con.EM_GETLINE, line, linetext)

I found this GetCharFromPosition in a VB forum  which sound promising
but unfortunately  it's not part of the win32gui for python

so now i'm looking for a reliable way to rich text from a controller
or position if you know a function who may do it or a better way
please tell me/
thank you and have a nice day



More information about the Python-list mailing list