Jump to content

Press button


Recommended Posts

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 297, 75, 193, 125)
$Button1 = GUICtrlCreateButton("Exit", 32, 8, 153, 25, 0)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
                                Case $Button1
                                                Exit
    EndSwitch
WEnd

Have fun

Link to comment
Share on other sites

or is it a hotkey your asking for....

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