Sign in to follow this  
Followers 0
stev379

If Checkbox is checked then

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



I thought I tried that.

It's working now.

Thanks for the tip!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0