Jump to content

Quick Question.


AzKay
 Share

Recommended Posts

ElseIf GUICtrlRead($Auth) And GUICtrlRead($Proxy) = $GUI_CHECKED Then
MsgBox(0, "", "Both checked")
oÝ÷ ØÚ&^¯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 by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

#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

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 by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

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

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...