| View previous topic :: View next topic |
| Author |
Message |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Sat Aug 21, 2004 1:26 am Post subject: Formated Text in MsgBox... |
|
|
How can I make text inside Message Boxes have breaklines, commas, special characters and etc?
| Code: | MsgBox, This is line 1.
This is line 2 but the script won't work now because I pressed the enter button to get to this new line.
This is line 3, but because it has a comma the script will think the sentence after it is a command and the script won't work. |
Like that code above, it is not possible to have breaklines or commas in the script. I tried using Blocks {...} but it never worked. How can I use these special characters in text boxes  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat Aug 21, 2004 1:29 am Post subject: |
|
|
From the help file at http://www.autohotkey.com/docs/commands/MsgBox.htm
"Escape sequences can be used to denote special characters. For example, `n indicates a "newline" character, which ends the current line and begins a new one. Thus, using text1`n`ntext2 would create a blank line between text1 and text2."
"This command has smart comma handling, so it is usually not necessary to escape commas in the Text parameter."
MsgBox For example, this line has a comma in it. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Sat Aug 21, 2004 5:53 am Post subject: |
|
|
Thanks alot, that helped  |
|
| Back to top |
|
 |
|