Jump to content

How to verify if a box is checked/selected


Recommended Posts

from the help

ControlCommand ( "title", "text", controlID, "command", "option" )

"command" - "IsChecked", ""Returns 1 if Button is checked, 0 otherwise

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

ControlCommand has some good features. Some of which can do want you want. The 1st example can verify the state of the checkbox and the rest do the action of checking or unchecking.

; Returns 1 if Button is checked, 0 otherwise
ControlCommand ( "title", "text", controlID, "IsChecked", "" )

; Checks radio or check Button
ControlCommand ( "title", "text", controlID, "Checked", "" )

; Unchecks radio or check Button
ControlCommand ( "title", "text", controlID, "UnChecked", "" )

Good luck

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...