Jump to content
Sign in to follow this  
Mcky

Any way of getting the value of a treeview item?

Recommended Posts

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]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

if using beta try advanced mode on read

$treeviewitemvalue = GUICtrlRead($treeview,1)
            MsgBox(0,"test",$treeviewitemvalue[0])
Edited 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.

 

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...