Jump to content

Recommended Posts

Posted

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??

Posted

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

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
×
×
  • Create New...