BlazeLondon Posted March 1, 2006 Posted March 1, 2006 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
BlazeLondon Posted March 1, 2006 Author Posted March 1, 2006 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
w0uter Posted March 1, 2006 Posted March 1, 2006 $all is the handle not the state. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
GaryFrost Posted March 1, 2006 Posted March 1, 2006 (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 March 1, 2006 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.
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