Jump to content
Sign in to follow this  
Rishav

New line in MSGBOX text

Recommended Posts

Rishav

Hi all

Have a rather simple but highly irritating problem.

I have a Msgbox which needs two different lines in the text.

ie. 1st line should say "MD5 for File 1: XXX" and then the next line says "MD5 for File 1: YYY"

MsgBox (0, "File Hashes Different.", "MD5 for File 1:" & $Hash1 & "" & "MD5 for File 2:" & $Hash2)

My msgbox however shows everything in one line only and using \n doesn't helps. Its hardly a major deal but everytime I see that messagebox with everything in a single line, I burn a quart of my delightful blood.

Any suggestions in this regards will be much appreciated.

thanks and regards.

Edited by Rishav

Share this post


Link to post
Share on other sites
ProgAndy

a linebrak is encoded with the macro @CRLF :)


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites
deathday

MsgBox (0, "File Hashes Different.", "MD5 for File 1:" & @CRLF & "MD5 for File 2:" )

try that .. :)

Share this post


Link to post
Share on other sites
system24

MsgBox (0, "File Hashes Different.", "MD5 for File 1:" & $Hash1 & @CRLF & "MD5 for File 2:" & $Hash2)


[center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center]

Share this post


Link to post
Share on other sites
Rishav

Thanks a lot guys. Can't believe how much that tiny thing irritated me. I ended up spending an hour using various permutations of "\n". :)

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  

×