1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Line break in msgbox text

Discussion in 'Support' started by element, Jul 9, 2010.

  1. element

    Joined:
    Jun 1, 2008
    Messages:
    30
    Likes Received:
    0
    How do I insert a line break into a msgbox text? C-style "\n" doesn't work.

    msgbox /w ok "Warning" Bad path:[line break here]%somepath%
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,277
    Likes Received:
    38
    Try %=N instead:

    msgbox /w ok "Warning" Bad path:%=n%somepath
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,784
    Likes Received:
    29
    On Fri, 09 Jul 2010 16:58:06 -0400, element <>
    wrote:

    |How do I insert a line break into a msgbox text? C-style "\n" doesn't work.
    |
    |msgbox /w ok "Warning" Bad path:[line break here]%somepath%

    Use a TCC escape sequence; with the default escape character, that'll
    be ^n.
     
  4. element

    Joined:
    Jun 1, 2008
    Messages:
    30
    Likes Received:
    0
    Thanks, both solutions work.
     

Share This Page