Sign in to follow this  
Followers 0
flip2405

Makeing a checklist

2 posts in this topic

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

Share this post


Link to post
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
1 person likes this

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