Medic873 0 Posted August 15, 2010 I have a lot of tree views in my gui and Im wanting to be where once the user clicks start it will take the TreeView item selected and say it = $item = "Url" and then display it how can I have it where it says if this tree view is selected then change $item1 to this and if this tree view select then change it to this.. Thank you in advance Share this post Link to post Share on other sites
Medic873 0 Posted August 16, 2010 why dosnt this work and how can I get this to work properly If GUICtrlRead($TreeView1_1) = 1 Then $Url = "aub"; EndIf Share this post Link to post Share on other sites
PsaltyDS 39 Posted August 16, 2010 Post a short but complete demo script we can run to see what you want. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Share this post Link to post Share on other sites
4ggr35510n 0 Posted August 16, 2010 Without example, only 2 guess I can make: Does If expression is checked just once or many times? Is it in infinite loop or assigned to a button? Maybe try GuiCtrlRead($main_tree_view_id) for getting ID of item currently selected? Check GuiCtrlCreateTreeView helpfile example for this solution. Share this post Link to post Share on other sites