Jump to content

Message Box & user input


Recommended Posts

Hi

Can anybody please provide me with a sample script thalts the script displaying a message box and and a button. As soon as the button is pressed the script goes on.

..well, if possible. muttley

Thanks.

Link to comment
Share on other sites

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 52, 27, 193, 125, -1, $WS_EX_TOOLWINDOW)
GUISetBkColor(0xA6CAF0)
$Button1 = GUICtrlCreateButton("Button1", 8, 8, 35, 9, 0)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        case $Button1
            msgbox(0,"Phail","Next time use the search button,okay?")
    EndSwitch
WEnd

Edited by H5O20H

Valik, The Legendary programmer!Will be using that signature for 2 months due to my loss on a bet ):

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