Archive: Line breaks in message boxes


Line breaks in message boxes
Hi everybody. I got a rather easy question for y'all... is it possible to add a line break within the text of a message box? How can I do it? I tried like it's done in C++:

MessageBox MB_ICONINFORMATION|MB_OK "Line 1\r\nLine 2".

But of course it doesn't work : |.


MessageBox MB_ICONINFORMATION|MB_OK "Line 1$\nLine 2".

Thanks dude! It works : D.


Apparently you should use $\r$\n in Windows but $\n seems to work just fine as well.

-Stu


Yeap
Well then I would prefer using the $\r$\n : D.


In C, \n is automatically converted to the system line break (carriage return + line break). In NSIS scripts, $\r and $\n represent carriable return and line break.


-> $\r$\n
-> MessageBox MB_ICONINFORMATION|MB_OK "Line 1$\nLine 2".

This two way works =]
thx for the help guys