ls5302 Posted October 22, 2010 Posted October 22, 2010 I'm using the following code to locate mail recipients in the "PGP Desktop - Key Selection Dialog". Local $hKeys = ControlGetHandle($hWindow, "", "[CLASS:SysListView32; INSTANCE:1]") Local $iKeyIndex = _GUICtrlListView_FindInText($hKeys, $strRecipient) The code works without issue on Windows XP x86 platform, but the _GUICtrlListView_FindInText() function doesn't return anything on Windows 7 x64 platform. Is this to do with wide characters? Is there a work around?
ls5302 Posted October 25, 2010 Author Posted October 25, 2010 Note to self... read the documentation!!!Although PGP v10 has 64-bit components, the PGPTray.exe application is 32-bit (shown in the Task Manager).As documented for the ControlListView function:Some commands may fail when using a 32-bit AutoIt process to read from a 64-bit process. Likewise commands may fail when using a 64-bit AutoIt process to read from a 32-bit process.Compiling my AutoIT script as a 32-bit application resolved the problem.A wondering for the future... How to deal with the requirement to read from 32-bit and 64-bit processes from one AutoIt process?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now