Sign in to follow this  
Followers 0
MsgBox

MsgBox

5 posts in this topic

I am a novice programmer

MsgBox needs to explain MsgBox Function

Share this post


Link to post
Share on other sites



...did you read the help file?

Share this post


Link to post
Share on other sites

This is enough for you:

msgbox(48, 'Warning', 'You are a novice programmer, please read the help file CAREFULLY')
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Flag determines the type of message that will appear on the screen (exclamation Ok & Cancel, Warning)

MsgBox(16, "An error was encountered", "Preparing to format your HD...", 5)

the same thing:

$mFlag = 16; flag 16-> Stop-sign icon
$mTile = "An error was encountered"
$mText = "Preparing to format your HD..."
$Time_to_close = 5 ;seconds

MsgBox($mFlag, $mTile, $mText, $Time_to_close)
Edited by GordonFreeman

Share this post


Link to post
Share on other sites

Hey MsgBox, you came here to learn yourself, lol

Function MsgBox got 5 parameters(First three are necessarily and the other two are optional)

1.The first one is the flag.

Flag is the parameter that indicates the type of message box.

You find all flag values here: http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm

2.The second one is the Title.

It refears to the title of the message box.

3.The third is Text.

It refears to the text of the message box.

The other two are optional.

They are Timeout and Hwnd

4.Timeout

Timeout in seconds. After the timeout has elapsed the message box will be automatically closed.

5.Hwnd

The window handle to use as the parent for this dialog.

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