Sign in to follow this  
Followers 0
Velius

Message Box & user input

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#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 ):

Share this post


Link to post
Share on other sites

Yeah.... I did, but THX anyway muttley :)

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