crystalburner Posted March 1, 2006 Share Posted March 1, 2006 anyone know why i cant get status of this checkbox? when submit button pressed $all = GUICtrlCreateCheckBox ("Use the same username & password for all shares", 80, 110) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE GuiSetState (@sw_show, $Main) GuiDelete ($Sub) exitloop Case $msg = $cancel GuiSetState (@sw_show, $Main) GuiDelete ($Sub) exitloop Case $Msg = $Submit If $all= BitOR($all, $GUI_CHECKED) Then MsgBox(262208, "Q-Backup - IMPORTANT INFORMATION!", "You have specified that this machine has a non Microsoft e-Mail system installed. You must manually select the folder that contains this e-Mail system's data (the mailboxes). Additionally you may need to add STOP and START commands for your mail system prior to backup (to shutdown this system for the duration of the backup). This is done in section 5 (before and after) of this Wizard. For more information please see the Setup and Installation Guide. This guide can be viewed from the Help! menu.") $User = GuiCtrlRead ($userName) $Pass = GuiCtrlRead ($Password) iniWrite ("~netfldr.tmp", $Ret[1], "User" ,$User) iniWrite ("~netfldr.tmp", $Ret[1], "Password" ,$pass) GuiSetState (@sw_show, $Main) GuiDelete ($Sub Link to comment Share on other sites More sharing options...
flyingboz Posted March 1, 2006 Share Posted March 1, 2006 mebbe if you asked in the gui forum.... Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
NegativeNrG Posted March 1, 2006 Share Posted March 1, 2006 Case $Msg = $Submit If GUIctrlread($all) = $GUI_CHECKED Then MsgBox(262208, "Q-Backup - IMPORTANT INFORMATION!", "You have specified that this machine has a non Microsoft e-Mail system installed. You must manually select the folder that contains this e-Mail system's data (the mailboxes). Additionally you may need to add STOP and START commands for your mail system prior to backup (to shutdown this system for the duration of the backup). This is done in section 5 (before and after) of this Wizard. For more information please see the Setup and Installation Guide. This guide can be viewed from the Help! menu.") [size=20]My File Upload[/size]Register at my site and upload. Link to comment Share on other sites More sharing options...
GaryFrost Posted March 1, 2006 Share Posted March 1, 2006 Case $Msg = $Submit If GUIctrlread($all) = $GUI_CHECKED Then MsgBox(262208, "Q-Backup - IMPORTANT INFORMATION!", "You have specified that this machine has a non Microsoft e-Mail system installed. You must manually select the folder that contains this e-Mail system's data (the mailboxes). Additionally you may need to add STOP and START commands for your mail system prior to backup (to shutdown this system for the duration of the backup). This is done in section 5 (before and after) of this Wizard. For more information please see the Setup and Installation Guide. This guide can be viewed from the Help! menu.") almost correct If BitAnd(GuiCtrlRead($all), $GUI_CHECKED) = $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...
NegativeNrG Posted March 1, 2006 Share Posted March 1, 2006 (edited) Both do work right? #include <GUIConstants.au3> $Form1 = GUICreate("Example", 212, 34, 192, 125) $Button1 = GUICtrlCreateButton("Pop-up Messagebox", 104, 0, 105, 33) $Checkbox1 = GUICtrlCreateCheckbox("My Check 1", 8, 8, 89, 17) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button1 $checked = $GUI_CHECKED $read = GUIctrlread($Checkbox1) if $read <> $checked Then Msgbox(0,'','it is not checked') Elseif $read = $checked Then Msgbox(0,'','it is checked') EndIf Case Else EndSelect WEnd Also, Instead of if BitAnd(GUIctrlread($all),$GUI_CHECKED) = $GUI_CHECKED Then... Can you use if BitAnd(GUIctrlread($all),$GUI_CHECKED) Then.. ? Edited March 1, 2006 by NegativeNrG [size=20]My File Upload[/size]Register at my site and upload. Link to comment Share on other sites More sharing options...
GaryFrost Posted March 1, 2006 Share Posted March 1, 2006 if BitAnd(GUIctrlread($all),$GUI_CHECKED)should work 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...
NegativeNrG Posted March 1, 2006 Share Posted March 1, 2006 yeh, ok. [size=20]My File Upload[/size]Register at my site and upload. 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