Sign in to follow this  
Followers 0
Lord_Doominik

GUICtrlGetState()

3 posts in this topic

#1 ·  Posted (edited)

y don't works this o.O??? $C2Active and $C3Active are checkboxes...

If GUICtrlGetState($C2Active) = $GUI_CHECKED Then IniWrite("Options.mxc", "Spieler", "Computer2Aktiv", "true")
        If GUICtrlGetState($C3Active) = $GUI_CHECKED Then IniWrite("Options.mxc", "Spieler", "Computer3Aktiv", "true")
        If GUICtrlGetState($C2Active) = $GUI_UNCHECKED Then IniWrite("Options.mxc", "Spieler", "Computer2Aktiv", "false")
        If GUICtrlGetState($C3Active) = $GUI_UNCHECKED Then IniWrite("Options.mxc", "Spieler", "Computer3Aktiv", "false")

the program always return true...

Edited by Lord_Doominik

Share this post


Link to post
Share on other sites



y don't works this o.O??? $C2Active and $C3Active are checkboxes...

If GUICtrlGetState($C2Active) = $GUI_CHECKED Then IniWrite("Options.mxc", "Spieler", "Computer2Aktiv", "true")
        If GUICtrlGetState($C3Active) = $GUI_CHECKED Then IniWrite("Options.mxc", "Spieler", "Computer3Aktiv", "true")
        If GUICtrlGetState($C2Active) = $GUI_UNCHECKED Then IniWrite("Options.mxc", "Spieler", "Computer2Aktiv", "false")
        If GUICtrlGetState($C3Active) = $GUI_UNCHECKED Then IniWrite("Options.mxc", "Spieler", "Computer3Aktiv", "false")

the program always return true...

<{POST_SNAPBACK}>

from the helpfile:

Return Value

Returns the state. See GUICtrlSetState for values.

Remarks

As opposed to GUICtrlRead this function returns only the state of a control (disabled/hidden/etc)

Exceptions:

For ListView controls it returns the number of the clicked column.

i think the function you want to use is GuiCtrlRead()


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

oh thx... but this stands nowhere in the help... i thought i had to take guictrlgetstate, because $GUI_CHECKED a state is...

Edited by Lord_Doominik

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