Sign in to follow this  
Followers 0
Jullaras

inputbox and cancel

3 posts in this topic

Hello

this time i have a question about the inputbox

let's use this code for example

$give=inputbox(("Give","Give")

it shows something

give in the blue line

give as text

a textbox

and two buttons ok and cancel

i want when the user presses the cancel to exit the programm

am i specific enough ?


Tick tock time is passing away leaving us naked

Share this post


Link to post
Share on other sites



InputBox ( "title", "Prompt" [, "Default" [, "password char" [, Width, Height [, Left, Top [, TimeOut]]]]] )

Check the help file and look for the return value.

$give=inputbox("Give","Give")

If @error = 1 Then
    MsgBox(0, 'Exit Script', 'User press Cancel.')
    Exit
EndIf

MsgBox(0, 'InputBox', $give)

AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

thanx you very much


Tick tock time is passing away leaving us naked

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