Jump to content

Problems with ControlTreeView and GetSelected


StSchnell
 Share

Recommended Posts

Hello community,

the following code work perfect:

;-Begin-----------------------------------------------------------------

  Dim $rc
  
  Dim $Title = "AutoItX3Lib Object Library"
  Dim $Class = "HH Parent"
  
  Dim $WinTitle = "[TITLE:" & $Title & "; CLASS:" & $Class & "]"

  Dim $TVClass = "SysTreeView32"
  Dim $TVClassNN = "SysTreeView321"
  
  Dim $TV = "[CLASS:" & $TVClass & "; CLASSNN:" & $TVClassNN & "]"
  
  $rc = ControlTreeView($WinTitle, "", $TV, "GetSelected")
  
  MsgBox(0, "ReturnCode", $rc)

;-End-------------------------------------------------------------------

But nearly the same code with AutoItX does not work:

Const TVClass = "SysTreeView32"
Const TVClassNN = "SysTreeView321"

Dim TV
TV = "[CLASS:" & TVClass & "; CLASSNN:" & TVClassNN & "]"
            
Dim RC

RC = oAutoIt.ControlTreeView(Title, "", TV, "GetSelected")

MsgBox RC

I get an error: Wrong number of arguments or invalid assignment. Is there something wrong with the code or is it a bug in the library, in ControlTreeView command?

Thanks for tips.

Cheers

Stefan

Edited by StSchnell
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...