Jump to content

Recommended Posts

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

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

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

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 by NegativeNrG

[size=20]My File Upload[/size]Register at my site and upload.

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