fcsauer Posted June 27, 2009 Posted June 27, 2009 (edited) 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 June 27, 2009 by fcsauer
colafrysen Posted June 27, 2009 Posted June 27, 2009 (edited) 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 June 27, 2009 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]
UEZ Posted June 27, 2009 Posted June 27, 2009 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
fcsauer Posted June 28, 2009 Author Posted June 28, 2009 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
xkp Posted October 28, 2010 Posted October 28, 2010 MsgBox(0, "Finished", "This was it." & @CRLF & "Feel free to do it again." , 10) Thank you!
JoHanatCent Posted October 28, 2010 Posted October 28, 2010 (edited) And this 2 MsgBox(0, "Finished", "This was it." & Chr(13) & "Feel free to do it again." , 10) Edited October 28, 2010 by JoHanatCent
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now