AzKay Posted November 3, 2006 Share Posted November 3, 2006 (edited) ElseIf GUICtrlRead($Auth) And GUICtrlRead($Proxy) = $GUI_CHECKED Then MsgBox(0, "", "Both checked") oÝ÷ ØÚ&jÛ^¯Z´kÉ8b²X§yÚ²{p¢¹¶;¬· 'µÆ¥Z½é²ÙÈ^rFèÇljëh×6 $Auth = GUICtrlCreateCheckbox("User Auth.", 8, 56, 89, 17) $Proxy = GUICtrlCreateCheckbox("User Proxy", 8, 104, 73, 17) oÝ÷ Øb²{jYb!z{a{&«yº-È^rG"÷Ê-¯'jëh×6 ElseIf GUICtrlRead(BitAND($Auth, $Proxy)) = $GUI_CHECKED Then MsgBox(0, "", "Both checked") oÝ÷ Ø Ý"÷¯'jëh×6 ElseIf GUICtrlRead($Auth) = $GUI_CHECKED Then If GUICtrlRead($Proxy) = $GUI_CHECKED Then MsgBox(0, "", "Both checked") EndIf And ofcourse, This isnt my whole script, But the rest shouldnt be relevant. If It is, Ill post it. Edited November 3, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AutoChris Posted November 3, 2006 Share Posted November 3, 2006 ElseIf GUICtrlRead($Auth) And GUICtrlRead($Proxy) = $GUI_CHECKED Then MsgBox(0, "", "Both checked") oÝ÷ Ûú®¢×¯&®¶s`¤VÇ6TbuT7G&Å&VBb33c´WFÒb33c´uTô4T4´TBæBuT7G&Å&VBb33cµ&÷Òb33c´uTô4T4´TBFVà Link to comment Share on other sites More sharing options...
AzKay Posted November 3, 2006 Author Share Posted November 3, 2006 Doesnt work either. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
GaryFrost Posted November 3, 2006 Share Posted November 3, 2006 #include <GUIConstants.au3> Global $GUI = GUICreate('test', 140, 125) $Auth = GUICtrlCreateCheckbox("User Auth.", 8, 10, 89, 17) $Proxy = GUICtrlCreateCheckbox("User Proxy", 8, 30, 73, 17) $button = GUICtrlCreateButton("Test",10,60,90,20) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $button If BitAND(GUICtrlRead($Auth),$GUI_CHECKED) And BitAND(GUICtrlRead($Proxy),$GUI_CHECKED) Then MsgBox(0,"Test", "Both Checked") EndIf Case Else EndSwitch WEnd SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
AzKay Posted November 3, 2006 Author Share Posted November 3, 2006 (edited) Odd, Your example works fine, Though, It doesnt work in my script. I guess ill have to post my whole code? ; Removed until I post the finnished version in scripts and scraps. Edited November 4, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
GaryFrost Posted November 4, 2006 Share Posted November 4, 2006 If BitAND(GUICtrlRead($Auth), $GUI_CHECKED) And BitAND(GUICtrlRead($Proxy), $GUI_CHECKED) Then MsgBox(0, "", "Both checked") ElseIf GUICtrlRead($Auth) = $GUI_CHECKED Then If GUICtrlRead($Proxy) = $GUI_UNCHECKED Then MsgBox(0, "", "Auth checked") EndIf ElseIf GUICtrlRead($Proxy) = $GUI_CHECKED Then SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
AzKay Posted November 4, 2006 Author Share Posted November 4, 2006 Ah, Works fine, Thanks. # MY LOVE FOR YOU... IS LIKE A TRUCK- # 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