zutto Posted October 8, 2008 Share Posted October 8, 2008 yeh :E i havent figured out yet howto use checkbox? $x1 = GUICtrlCreateCheckbox ("Select this ", 10, 10, 120, 20) but howto use that? $x1 = GUICtrlCreateCheckbox ("Select this ", 10, 10, 120, 20) if $x1 = 1 then dostuff endif or ? Link to comment Share on other sites More sharing options...
ludocus Posted October 8, 2008 Share Posted October 8, 2008 #include <GUIConstants.au3> If GUICtrlRead($x1) = $GUI_CHECKED then msgbox(0, 'Checkbox1', 'Checkbox1 is checked) Link to comment Share on other sites More sharing options...
zutto Posted October 8, 2008 Author Share Posted October 8, 2008 #include <GUIConstants.au3>If GUICtrlRead($x1) = $GUI_CHECKED then msgbox(0, 'Checkbox1', 'Checkbox1 is checked)Thank you. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 8, 2008 Share Posted October 8, 2008 #include <GUIConstants.au3>If GUICtrlRead($x1) = $GUI_CHECKED then msgbox(0, 'Checkbox1', 'Checkbox1 is checked)That is wrong, it should be BitAnd(GUICtrlRead($x1),$GUI_CHECKED) to check if it is checked. It is in the helpfile for GUICtrlRead(). .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
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