Sign in to follow this  
Followers 0
muchado

ControlTreeView fails under AutoIt3_x64.exe, but runs with AutoIT.exe (v3.3.10.2)

3 posts in this topic

I have identified problems with ControlTreeView when using the x64 executable that aren't there with the default (presumably x86) executable (both v3.3.10.2 on Win7).

I am trying to set options in a TreeView in a structural analysis program. I have managed to get the handles for the window and for the TreeView and I have used those to expand and then select one of the options. This works fine with the default executable (incidentally the one that is called by SCiTE) However, I find that when I run this under the x64 executable, it fails to expand or check the tree, although it does manage to give a correct response to "IsChecked". 

 

$hOutputSpecDialog = WinWait("Output Specification")
$hTreeView = ControlGetHandle ( $hOutputSpecDialog, "", "[CLASS:SysTreeView32; INSTANCE:1]" )
ControlTreeView( $hOutputSpecDialog, "", $hTreeView, "Expand", "General Results")
ControlTreeView( $hOutputSpecDialog, "", $hTreeView, "Check", "General Results")
$iIsItemChecked = ControlTreeView ( $hOutputSpecDialog, "", $hTreeView, "IsChecked", "#3" )

x86:         Line 1042  ULSL: TreeView handle is: 0x00382878

x64:         Line 1042  ULSL: TreeView handle is: 0x0000000000372C30

NB. The fact that the the handles are different are because these are two different analysis runs.

Having got this far with my posting, I wonder whether it should actually be a bug report. If not, am I doing something wrong? Do I need to set some flag when calling AutoIT3_x64? If it is likely to be a bug, then where do I go to log it?

Thanks.

post-65681-0-24443100-1396932381_thumb.p

Share this post


Link to post
Share on other sites



Hi, 

I faced the same situation. Have you got any solution?

Share this post


Link to post
Share on other sites

No, sorry. I think it is a bug. It will probably get sorted once the x64 format becomes the standard.

Share this post


Link to post
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
Sign in to follow this  
Followers 0