Jump to content

Button function


Kivin
 Share

Recommended Posts

#include <GUIConstants.au3>

GUICreate("Button", 137, 60, -1, -1)
$Button = GUICtrlCreateButton("&Click me", 8, 8, 121, 41, 0)
GUISetState(@SW_SHOW)

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button
            MsgBox(0, "Button", "This is what happens when you press me!")
    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...