Godownage Posted April 6, 2005 Share Posted April 6, 2005 Here is how I am using it in the config: $Char1 = GUICtrlCreateCheckbox("Char1", 10, 105, 50, 20) If $Char1 = "Yes" Then GUICtrlSetState( 99, $GUI_CHECKED ) And I am trying to call it in my script like this: If $Char1 = "Yes" Then Char1 () Then it does a function below blah blah. My question is, it just skips over my functions if i click the check while i open the config. If I click the check mark, and click apply (to save it) then quit and re open it, the check is gone. Any ideas on how to fix this? Link to comment Share on other sites More sharing options...
GaryFrost Posted April 6, 2005 Share Posted April 6, 2005 (edited) $Char1 = GUICtrlCreateCheckbox("Char1", 10, 105, 50, 20)If $Char1 = "Yes" Then GUICtrlSetState( 99, $GUI_CHECKED )$Char1 at this point is the Control Id, the text in $Char1 is "Char1"to get what is in $Char1: GUICtrlRead($Char1) which would be the state the check box is in, not sure why you would be checking if $Char1 is equal to "Yes" should be $GUI_CHECKED or $GUI_UNCHECKED. Edited April 6, 2005 by gafrost 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...
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