Jump to content

_GUICtrlListView_GetItemText () on Windows 7 x64


ls5302
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...