Mcky Posted July 14, 2005 Share Posted July 14, 2005 Like i set the value of a treeview item to "rabbit". How do i get the value "rabbit" into a variable using GUICtrlRead? My website: (Lots of AutoIt compiled programs+GameMaker games)http://mcky.sitesled.comMy AutoIt projects:Mcky's CalEntry - Calendar schedulingMcky's Web Extractor - Web page links extractorMcky's Appkey- Powerful Hotkey-listing tool[quote]I wish I was never born. I am just a lonely soul in this world... :([/quote] Link to comment Share on other sites More sharing options...
Lord_Doominik Posted July 14, 2005 Share Posted July 14, 2005 $treeviewitemvalue = GUICtrlRead(GUICtrlRead($treeview)) after the 1st reading of the treeview you'll get the control identifer of the treeview... its a number, f.e. 90, and after the 2nd reading the program reads the number and gives the value back... i've tested this in one of my earlier projects... i hope that works... if not i'll make an example with autoit for you, but at the moment i am too busy to make you one... Link to comment Share on other sites More sharing options...
Mcky Posted July 15, 2005 Author Share Posted July 15, 2005 sorry,i tried it but it return "256". Any other way? My website: (Lots of AutoIt compiled programs+GameMaker games)http://mcky.sitesled.comMy AutoIt projects:Mcky's CalEntry - Calendar schedulingMcky's Web Extractor - Web page links extractorMcky's Appkey- Powerful Hotkey-listing tool[quote]I wish I was never born. I am just a lonely soul in this world... :([/quote] Link to comment Share on other sites More sharing options...
Lord_Doominik Posted July 15, 2005 Share Posted July 15, 2005 are you sure, that you read the treeview and not the treeview item? Link to comment Share on other sites More sharing options...
GaryFrost Posted July 15, 2005 Share Posted July 15, 2005 (edited) if using beta try advanced mode on read $treeviewitemvalue = GUICtrlRead($treeview,1) MsgBox(0,"test",$treeviewitemvalue[0]) Edited July 15, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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