Questions about AppendToNotepad

Posted by Jun Dai on Sun 03 Jan 2021 07:36 AM — 3 posts, 16,574 views.

#0
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!
USA Global Moderator #1
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?
Amended on Sun 03 Jan 2021 08:19 AM by Fiendish
#2
Thank you Fiendish.
I have found the root cause through http://www.gammon.com.au/forum/bbshowpost.php?id=12585

It works now. :)