Jump to content

GUICtrlGetState()


Recommended Posts

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
Link to comment
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()

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...