Barnabus Collins Posted October 11, 2005 Share Posted October 11, 2005 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?? Link to comment Share on other sites More sharing options...
GaryFrost Posted October 11, 2005 Share Posted October 11, 2005 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 More sharing options...
MHz Posted October 11, 2005 Share Posted October 11, 2005 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 More sharing options...
Barnabus Collins Posted October 11, 2005 Author Share Posted October 11, 2005 Thanks... 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