Jump to content

How do I put more lines in a MsgBox?


Recommended Posts

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
Link to comment
Share on other sites

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]
Link to comment
Share on other sites

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

  • 1 year later...

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...