Sign in to follow this  
Followers 0
AzKay

Quick Question.

7 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



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à

Share this post


Link to post
Share on other sites

Doesnt work either.


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by AzKay

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

Ah, Works fine, Thanks. :whistle:


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
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
Sign in to follow this  
Followers 0