Hello,
There is many method to get the window title,
from a process it came with the ao.Name
but i don't know how to get the encoding of window title,
for example when the browser surf on page in another language.
is there a way to get it with win32 ?
Thanks
Roche Maxime
Creative iNF
here is some code to get the window title:
hwnd = win32gui.GetForegroundWindow()
# we want the desktop window
objid = pyAA.Constants.OBJID_WINDOW
# get the object
ao = pyAA.AccessibleObjectFromWindow(hwnd, objid)
pr= ao.GetPro
Hammond a écrit :
> You might find the 'mbcs' encoding is what you are after?
>
> Cheers,
>
> Mark
>
> On 28/02/2011 11:22 PM, Creative iNFiNiTY wrote:
>> here is some code to get the window title:
>>
>> hwnd = win32gui.GetForegroundWindow()
>