Jump to content

inputbox and cancel


Recommended Posts

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

Link to comment
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
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...