Jump to content

Recommended Posts

Posted

Yes it's possible with beta, using GUICtrlRead in advanced mode. Refer to help for it.

<{POST_SNAPBACK}>

Then why aint this working for me?..

#include <GUIConstants.au3>

GUICreate("Test",200,200)

$treeview = GUICtrlCreateTreeView(10,10,180,180)
$item1 = GUICtrlCreateTreeViewItem("Item1",$treeview)
$item2 = GUICtrlCreateTreeViewItem("Item2",$treeview)
$item3 = GUICtrlCreateTreeViewItem("Item3",$treeview)
GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg > 0
            Msgbox(0,"EventID",GUICtrlread($Item1,1))
    EndSelect
WEnd

GUIDelete()
Exit

Btw - the script in the help file under "GUICtrlRead" and the script it opens when "open this script" button is pressed ain't the same..

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
×
×
  • Create New...