Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ Lua ➜ Questions about AppendToNotepad

Questions about AppendToNotepad

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


Posted by Jun Dai   (2 posts)  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!
Top

Posted by Fiendish   USA  (2,533 posts)  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
Top

Posted by Jun Dai   (2 posts)  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. :)
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.


10,526 views.

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

Go to topic:           Search the forum


[Go to top] top

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