Lord_Doominik Posted July 19, 2005 Posted July 19, 2005 (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 July 19, 2005 by Lord_Doominik
seandisanti Posted July 19, 2005 Posted July 19, 2005 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 ValueReturns the state. See GUICtrlSetState for values. RemarksAs 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()
Lord_Doominik Posted July 19, 2005 Author Posted July 19, 2005 (edited) oh thx... but this stands nowhere in the help... i thought i had to take guictrlgetstate, because $GUI_CHECKED a state is... Edited July 19, 2005 by Lord_Doominik
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