stev379 Posted February 10, 2005 Share 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! Link to comment Share on other sites More sharing options...
Lazycat Posted February 10, 2005 Share 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]) Link to comment Share on other sites More sharing options...
stev379 Posted February 10, 2005 Author Share Posted February 10, 2005 I thought I tried that. It's working now. Thanks for the tip! 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