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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  Questions about AppendToNotepad

Questions about AppendToNotepad

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Jun Dai   (2 posts)  [Biography] bio
Date Sun 03 Jan 2021 07:36 AM (UTC)
Message
When I used AppendToNotepad based on the description of this function in the manual:

http://www.gammon.com.au/scripts/function.php?name=AppendToNotepad
Lua example
AppendToNotepad("Nick's window", "More stuff\r\n",
"another line")

I got the following Error:
[string "Trigger"]:1: unfinished string near '"More stuff'

Could you please have a look and let me know what's wrong here?

Thanks a lot!
[Go to top] top

Posted by Fiendish   USA  (2,525 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Sun 03 Jan 2021 08:18 AM (UTC)

Amended on Sun 03 Jan 2021 08:19 AM (UTC) by Fiendish

Message
It works fine for me. I think you must have something else wrong in another part of your script. Can you show the entire context?

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Jun Dai   (2 posts)  [Biography] bio
Date Reply #2 on Sun 03 Jan 2021 08:39 AM (UTC)
Message
Thank you Fiendish.
I have found the root cause through http://www.gammon.com.au/forum/bbshowpost.php?id=12585

It works now. :)
[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.


9,974 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]