AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Formated Text in MsgBox...

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Titan



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Sat Aug 21, 2004 1:26 am    Post subject: Formated Text in MsgBox... Reply with quote

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 Question
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Aug 21, 2004 1:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Titan



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Sat Aug 21, 2004 5:53 am    Post subject: Reply with quote

Thanks alot, that helped Very Happy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group