Sign in to follow this  
Followers 0
Barnabus Collins

How to verify if a box is checked/selected

4 posts in this topic

Hello everyone, I am trying to write a script to disable hibernation in Windows XP. I cannot find a code to determine if a box is checked or not ( I do not want to enable hibernation if it is already disabled). Could someone please shed some light on this dark search??

Share this post


Link to post
Share on other sites



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.

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Thanks...

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