Sign in to follow this  
Followers 0
Qual-IT London

tickbox

4 posts in this topic

what am i missing here?

$all = GUICtrlCreateCheckBox ("Use the same username & password for all shares", 80, 110)

GuiSetState()

While 1

$msg = GuiGetMsg()

Select

If $msg = BitOR($all, $GUI_CHECKED) Then MsgBox(262208, "checked!", "you checked it!.")

Endselect

Wend

Share this post


Link to post
Share on other sites



No idea why the above doesnt work but this seems to anyhow

$all = GUICtrlCreateCheckBox ("Use the same username & password for all shares", 80, 110)

GuiSetState()

While 1

$msg = GuiGetMsg()

Select

Case $Msg = $Submit

$x = GUICtrlRead($all)

If $x = 1 Then

msgbox (0,"Yep","Yep")

EndIf

EndSelect

Wend

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

what am i missing here?

$all = GUICtrlCreateCheckBox ("Use the same username & password for all shares", 80, 110)

GuiSetState()

While 1

$msg = GuiGetMsg()

Select

If $msg = BitOR($all, $GUI_CHECKED) Then MsgBox(262208, "checked!", "you checked it!.")

Endselect

Wend

#include <GuiConstants.au3>
GUICreate("test")
$all = GUICtrlCreateCheckbox("Use the same username & password for all shares", 80, 110)

GUISetState()
While 1
    
    $msg = GUIGetMsg()
    
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $all
            If BitAND(GUICtrlRead($all), $GUI_CHECKED) Then MsgBox(262208, "checked!", "you checked it!.")
    EndSelect
    
WEnd
Edited by gafrost

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

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