StSchnell Posted February 14, 2009 Share Posted February 14, 2009 (edited) 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 February 14, 2009 by StSchnell Meet me at XING Visit my private homepage Visit my commercial homepage Look at my book inter alia about AutoIt and SAP Link to comment Share on other sites More sharing options...
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