Jump to content

Recommended Posts

Posted (edited)

$button = GUICtrlCreateButton("Click Me", 10, 10, 80, 25)

While 1
    $msg = GUIGetMsg()

    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $button
            msgbox(0,"Status","Yes, you did click on me!")
    EndSelect
WEnd

Edited by DYONISII

http://dev.dyonisii.com/

Posted (edited)

$button = GUICtrlCreateButton("Click Me", 10, 10, 80, 25)

While 1
    $msg = GUIGetMsg()

    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $button
            msgbox(0,"Status","Yes, you did click on me!")
    EndSelect
WEnd

AdmiralAlkex gave the OP the best advice he could get, yet you post a simple button code with missing parts such as the actual GUICreate() and includes. Edited by Info

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...