Jump to content
Sign in to follow this  
fcsauer

How do I put more lines in a MsgBox?

Recommended Posts

fcsauer

Hello everybody,

I have read a lot of this forum and the help files already, but I can't find out how I can make two lines or more in the text field of my MsgBoxes.

I give you an example:

MsgBox(0, "Finished", "This was it. "ENTER" Feel free to do it again." , 10)

In this example I want in my text field "This was it." on the first line, and under that "Feel free to do it again."

I do look like a fool now, but how do I do that?

Kind regards,

F.C.Sauer

Edited by fcsauer

Share this post


Link to post
Share on other sites
colafrysen

the macro @CRLF, @CR, @LF is the ones you are looking for.

They stand for Carriage Return Line Feed, Carriage Return and Line Feed,

@CRLF is the one i use, Windows ends all lines with CRLF. Unix with LF only

Edit: Clarifications

Edited by colafrysen

[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]

Share this post


Link to post
Share on other sites
UEZ

Hello everybody,

I have read a lot of this forum and the help files already, but I can't find out how I can make two lines or more in the text field of my MsgBoxes.

I give you an example:

MsgBox(0, "Finished", "This was it. "ENTER" Feel free to do it again." , 10)

In this example I want in my text field "This was it." on the first line, and under that "Feel free to do it again."

I do look like a fool now, but how do I do that?

Kind regards,

F.C.Sauer

Welcome to the forum!

Try this:

MsgBox(0, "Finished", "This was it." & @CRLF & "Feel free to do it again." , 10)

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
fcsauer

Welcome to the forum!

Try this:

MsgBox(0, "Finished", "This was it." & @CRLF & "Feel free to do it again." , 10)

UEZ

Thanks UEZ! It works perfectly.

Now I can go on creating small programs.

With kind regards,

F.C.Sauer

Share this post


Link to post
Share on other sites
xkp

MsgBox(0, "Finished", "This was it." & @CRLF & "Feel free to do it again." , 10)

Thank you!

Share this post


Link to post
Share on other sites
JoHanatCent

And this 2

MsgBox(0, "Finished", "This was it." & Chr(13) & "Feel free to do it again." , 10)
Edited by JoHanatCent

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  

×