Medic873 Posted August 15, 2010 Share 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 Link to comment Share on other sites More sharing options...
Medic873 Posted August 16, 2010 Author Share 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 Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 16, 2010 Share 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 Link to comment Share on other sites More sharing options...
4ggr35510n Posted August 16, 2010 Share 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. 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