[python-win32] get the ao.Name encoding

2011-02-26 Thread Creative iNFiNiTY
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

[python-win32] (again) get Window Title encoding

2011-02-28 Thread Creative iNFiNiTY
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

Re: [python-win32] (again) get Window Title encoding

2011-03-01 Thread Creative iNFiNiTY
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() >