Hi Vignesh,

Most probably, the problem is connected with different size of structures (see win32_structures.py) for 32-bit and 64-bit applications.
I ported pywinauto to 64-bit Python. My source code branch is available in the repository:
https://code.google.com/r/vasilyvryabov-pywinauto-x64/source/browse

Please try it with 64-bit Python and 64-bit application. Hopefully, it can help.
For 32-bit applications you still need using 32-bit Python.

Best regards,
-Vasily.


2013/3/21 Vigneshwaran Gopalan <vigneshwaran.gopalan@gmail.com>
Hi Mark,
I have a application which is recently ported from win 32 bit to win 64 bit Os.
I use pyWinauto to automated the application.
The treeview.Select() method alone is not working. Other commands are working fine. It fails with the following error message.
=================Error Message========================
Exception WindowsError: WindowsError(6, 'The handle is invalid.') in <bound method _RemoteMemoryBlock.__del__ of <pywinauto.controls.common_controls._RemoteMemoryBlock object at 0x00000000044FAE48>> ignored
Traceback (most recent call last):
  File "C:\Users\c8vgopal\Desktop\test.py", line 14, in <module>
    app.UntitledQuery.SysTreeView32.Select('\\T854PB06')
  File "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line 1043, in Select
    elem = self.GetItem(path)
  File "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line 993, in GetItem
    texts = [r.Text() for r in self.Roots()]
  File "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line 634, in Text
    return self._readitem()[1]
  File "C:\Python26\lib\site-packages\pywinauto\controls\common_controls.py", line 883, in _readitem
    raise ctypes.WinError()
WindowsError: [Error 87] The parameter is incorrect.

==================================================

I use Python 2.6 (32 bit).

Could you kindly help me figure out the issue?



--
Thanks
Vignesh

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Pywinauto-users mailing list
Pywinauto-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pywinauto-users