Jump to content

Makeing a checklist


flip2405
 Share

Recommended Posts

okay i get some of the gui concept... i have not attempted any thing yet how ever could some one make me a gui script that the gui starts there is 1 check box when the check box is enable open notepad and type something just so i can see the source and get a general ideal of how to do it

Link to comment
Share on other sites

Example:

#include <GuiConstants.au3>

$hGui = GUICreate("Test GUI", 200, 100)

$checkbox = GUICtrlCreateCheckbox("Run notepad", 50, 45, 80, 16)

GUISetState()

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            ExitLoop
        Case $checkbox
            If GUICtrlRead($checkbox) = $GUI_CHECKED Then
                Run("notepad.exe")
                WinWait("[Class:Notepad]")
                ControlSend("[Class:Notepad]", "", "Edit1", "Hello world!", 1)
                GUICtrlSetState($checkbox, $GUI_UNCHECKED)
            EndIf
    EndSwitch
WEnd
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...