Sign in to follow this  
Followers 0
Godownage

GUI Question about Check Boxes

2 posts in this topic

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



#2 ·  Posted (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 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

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