stev379 Posted February 10, 2005 Posted February 10, 2005 How can I have the script check if a checkbox is checked then perform an action? $chkbox1=GUICtrlCreateCheckbox("Checkbox1",25,25) If $chkbox1 = $GUI_CHECKED Then ;IT ERRORS ON THIS LINE MsgBox(4096, "Box1 checked", "Box1 is checked.") Else MsgBox(4096, "Box1 not checked", "Box1 is not checked.") EndIf Thanks!
Lazycat Posted February 10, 2005 Posted February 10, 2005 You should read checkbox state: If GUICtrlRead($chkbox1) = $GUI_CHECKED Then Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
stev379 Posted February 10, 2005 Author Posted February 10, 2005 I thought I tried that. It's working now. Thanks for the tip!
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