alienkillaz Posted November 23, 2005 Posted November 23, 2005 i have 1 button that is suposed to hide 10 other buttons when pressed this is what i have but i think theres probably a way to do it more efficeintly case $msg = $b7 guictrlsetstate($B1,$GUI_HIDE) ;guictrlsetstate($b2,$GUI_HIDE) ;guictrlsetstate($b3,$GUI_HIDE) ;guictrlsetstate($b4,$GUI_HIDE) ;guictrlsetstate($b5,$GUI_HIDE) ;guictrlsetstate($b6,$GUI_HIDE) ;guictrlsetstate($b7,$GUI_HIDE) ;guictrlsetstate($b8,$GUI_HIDE) ;guictrlsetstate($b9,$GUI_HIDE) ;guictrlsetstate($b10,$GUI_HIDE) ;guictrlsetstate($b11,$GUI_HIDE)
JSThePatriot Posted November 23, 2005 Posted November 23, 2005 That is the only way I know how to do it. You could also always put it in a function so as to save re writing of the code. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)
Jason_A Posted November 23, 2005 Posted November 23, 2005 How about putting the 10 buttons on a seperate GUI window and using GUISetState to hide that whole window?
w0uter Posted November 23, 2005 Posted November 23, 2005 an array/eval and a for loop. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
LxP Posted November 24, 2005 Posted November 24, 2005 Here's some code based on w0uter's suggestion if it helps: Local $B[12] $B[1] = GUICtrlCreate... ··· $B[11] = GUICtrlCreate... ··· Case $Msg = $B[7] For $I = 1 To 11 GUICtrlSetState($B[$I], $GUI_HIDE) Next
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