Damastah Posted May 1, 2008 Share Posted May 1, 2008 I'm auto-installing a program that has options that you can check. E.G.: Do you want to add a shortcut to your desktop? and you can check the box. I want to say, if (box_is_checked) dont check it... How do i do that? Link to comment Share on other sites More sharing options...
LilNewKid8 Posted May 1, 2008 Share Posted May 1, 2008 if guictrlread($checkbox) = $gui_checked then ;it is checked Link to comment Share on other sites More sharing options...
FreeRider Posted May 1, 2008 Share Posted May 1, 2008 Hi Damastah, Use this... BitAnd(GUICtrlRead($Item),$GUI_CHECKED) and see GUICtrlRead function in help file for more details. Notice that $Item is the CtrlId of the control you want to check. Bye FreeRiderHonour & Fidelity Link to comment Share on other sites More sharing options...
Valuater Posted May 1, 2008 Share Posted May 1, 2008 (edited) I find this little Function from Zedna very useful... If _IsChecked($Checkbox_1) then.... Func _IsChecked($control) Return BitAnd(GUICtrlRead($control),$GUI_CHECKED) = $GUI_CHECKED EndFunc 8) Edited May 1, 2008 by Valuater Link to comment Share on other sites More sharing options...
Nevin Posted May 1, 2008 Share Posted May 1, 2008 I'd imagine that rather than doing if box is checked uncheck box you could just set the box to "unchecked" from the start. if it was already unchecked..who cares? Link to comment Share on other sites More sharing options...
NELyon Posted May 1, 2008 Share Posted May 1, 2008 I think he means on an external application (A non-Autoit generated GUI) I'll be back with some code in a minute (Unless someone beats me to it) 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