Jump to content

Issue with x64 vs. x86 behavior of AutoIt use of _GUICtrlTreeView_xyz functions


tony
 Share

Recommended Posts

Issue with x64 vs. x86 behavior of AutoIt use of _GUICtrlTreeView_xyz functions

_GUICtrlTreeView_xyz functions don't seem to work correctly on x64?

Hello,

This what I am trying to do. I want to test a package installation with AutoIt. Part of my testing is to test the 'Custom setup' the package is running. I am trying to figure out how to control that screen and be able to select 1 feature at a time. To do that I started playing with the _GUICtrlTreeView_xyz functions and I stumbled in my first issue. It seems that these functions don't work correctly when compiled with x64 libraries. If I run on my x64 windows 2008 server the 32bit compiled version of the code, it returns correctly the list of features available on the screen. If I run (on the same system, same screen) the x64 bit compiled version of the script, it returns an empty list.

Any suggestions??

thanks

here is the code I am using:

CODE

WriteToLog("Scan all the features...:")

$hTreeView = ControlGetHandle($PACKAGE_TITLE, '', 'SysTreeView321')

$hItemFound = _GUICtrlTreeView_GetFirstItem($hTreeView)

If $hItemFound Then

WriteToLog("Passed: Found feature:" & _GUICtrlTreeView_GetText($hTreeView, $hItemFound))

Else

$ERROR+=1;

WriteToLog("ERROR: Not able to find any feature")

ExitScript()

EndIf

While 1

$hItemFound = _GUICtrlTreeView_GetNext($hTreeView, $hItemFound)

If $hItemFound Then

WriteToLog("Passed: Found feature:" & _GUICtrlTreeView_GetText($hTreeView, $hItemFound))

Else

WriteToLog("No more features available")

ExitLoop

EndIf

WEnd

Using the 32bit compiled version I get:

2009/02/19 14:05:15:TestCustomSetup:Scan all the features...:

2009/02/19 14:05:15:TestCustomSetup:Passed: Found feature:Main Menu

2009/02/19 14:05:15:TestCustomSetup:Passed: Found feature:feature 1

2009/02/19 14:05:15:TestCustomSetup:Passed: Found feature:feature 2

2009/02/19 14:05:15:TestCustomSetup:Passed: Found feature:feature 3

2009/02/19 14:05:15:TestCustomSetup:Passed: Found feature:feature 4

2009/02/19 14:05:15:TestCustomSetup:Passed: Found feature:feature 5

2009/02/19 14:05:15:TestCustomSetup:Passed: Found feature:feature 6

2009/02/19 14:05:15:TestCustomSetup:Passed: Found feature:feature 7

2009/02/19 14:05:15:TestCustomSetup:Passed: Found feature:feature 8

2009/02/19 14:25:05:TestCustomSetup:No more features available

Using the x64 compiled version I get (please note that the list is not empty, it returns same number of elements, just empty though):

2009/02/19 14:25:05:TestCustomSetup:Scan all the features...:

2009/02/19 14:25:05:TestCustomSetup:Passed: Found feature:

2009/02/19 14:25:05:TestCustomSetup:Passed: Found feature:

2009/02/19 14:25:05:TestCustomSetup:Passed: Found feature:

2009/02/19 14:25:05:TestCustomSetup:Passed: Found feature:

2009/02/19 14:25:05:TestCustomSetup:Passed: Found feature:

2009/02/19 14:25:05:TestCustomSetup:Passed: Found feature:

2009/02/19 14:25:05:TestCustomSetup:Passed: Found feature:

2009/02/19 14:25:05:TestCustomSetup:Passed: Found feature:

2009/02/19 14:25:05:TestCustomSetup:Passed: Found feature:

2009/02/19 14:25:05:TestCustomSetup:No more features available

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...