Godownage 0 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? Share this post Link to post Share on other sites
GaryFrost 18 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. Share this post Link to post Share on other sites