NSIs Escape Character: $ (write line breaks in NSIs MessageBox)

Source: Internet
Author: User

In a recent project, we found that NSIs is a relatively pitfall: $ is not only the beginning of the variable constant, but also an escape character.

Have you found that "\ r \ n" is not useful if the text in the pop-up message box contains a line break in the NSIs script?

One day, after carefully reading the NSIs document, I finally suddenly realized that .. To write the following code =

MessageBox mb_ OK"This is the first line $ \ r$ \ n this is the second line"

Below we will sort out the escape characters in the NSIs string:

$ Indicates "$"

$ \ R indicates carriage return

$ \ N indicates a new row.

$ \ T indicates a tab

 

Although I have not carefully read the NSIs documentation, it is too difficult to give the escape character a second escape .. When I write this article, the right to speak .... ,,,

 

Reprinted please indicate the source of the article: leaco blog: http://www.cnblogs.com/Leaco/p/3865595.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.