Swimming_Bird Posted July 7, 2005 Share Posted July 7, 2005 (edited) I've got 6-12 controlids that i use $GUI_SHOW and $GUI_HIDE on this one group of controlIDs in many different places, is there any way i can group these IDs so i can just do GUICtrlSetState( $group , $GUI_SHOW ) Edited July 7, 2005 by Swimming_BIrd Link to comment Share on other sites More sharing options...
Valuater Posted July 7, 2005 Share Posted July 7, 2005 good question... i used this For $dis = 1 To 9 GUICtrlSetState($Start_[$dis], $GUI_HIDE) Next hope it helps 8) Link to comment Share on other sites More sharing options...
Helge Posted July 7, 2005 Share Posted July 7, 2005 (edited) Coded directly into the browser, so untested If StringInStr("|" & $cButton1 & "|" & $cButton2 & "|" & $cButton3 & "|","|" & $msg & "|") Then _ GUICtrlSetData($msg,"Clicked !")Edit : Bug fixed Edited July 7, 2005 by Helge Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 7, 2005 Author Share Posted July 7, 2005 good question... i used thisFor $dis = 1 To 9 GUICtrlSetState($Start_[$dis], $GUI_HIDE)Nexthope it helps8)<{POST_SNAPBACK}>this is embarassing, i'm having a problem putting each of the gui items inside of an array :"> i think i may not be innitializing it propperly. Link to comment Share on other sites More sharing options...
Helge Posted July 7, 2005 Share Posted July 7, 2005 For $dis = 1 To 9 GUICtrlSetState(Eval("Start_" & $dis), $GUI_HIDE) Next Link to comment Share on other sites More sharing options...
Valuater Posted July 7, 2005 Share Posted July 7, 2005 (edited) this is embarassing, i'm having a problem putting each of the gui items inside of an array :"> i think i may not be innitializing it propperly.<{POST_SNAPBACK}>i put in theseDim $Start_[10]thenStart_[1] = GUICtrlCreate....Start_[2] = GUICtrlCreate....8) Edited July 7, 2005 by Valuater Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 7, 2005 Author Share Posted July 7, 2005 no, this is the error i get when i try to run itC:\Documents and Settings\tatlas\Desktop\Signatures Autoit\prelim script.au3 (84) : ==> Variable used without being declared.: $usin[1]= GUICtrlCreateInput ("", 80,185,35,20) ^ ERROR Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 7, 2005 Author Share Posted July 7, 2005 i put in theseDim $Start_[10]thenStart_[1] = GUICtrlCreate....Start_[2] = GUICtrlCreate....8)<{POST_SNAPBACK}>worked great thanks 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