[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Jscript
. . -> [Subject]  Sending a literal \n

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Sending a literal \n

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Tlanuwa   (1 post)  [Biography] bio
Date Tue 05 Apr 2005 01:13 AM (UTC)  quote  ]
Message
Alright, I converted my scripts from vbscript to jscript, and everything but one thing is working fine.

In VB, I had world.send "conjure illusion Blah blah\notherstuff" and this worked fine (and as it was supposed to) -- the game world converted the \n to a newline character just as it was supposed to.

In JScript, it converts it automatically before sending, executing the first line correctly ("conjure illusion Blah blah"), and then trying to send the second line ("other stuff") seperately.

Anyone know of a work around?

Thanks in advance.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #1 on Tue 05 Apr 2005 03:36 AM (UTC)  quote  ]
Message
Escape the \n it becomes: "conjure illusion Blah blah\\notherstuff"

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,363 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]