With certain notepad functions like AppendToNotepad, SendToNotepad, And ReplaceNotepad could it be possible to support referencing lines in the window. Ie if I have a list in a notepad and want to change the second item in the list I could do something like world.ReplaceNotepad("Window", "text", 2)
Notepad lines
Posted by Jestre on Wed 08 Dec 2004 03:27 AM — 4 posts, 15,352 views.
There are plenty of workarounds.
You can use getnotepadtext (and then make change, and set it back).
Or, you can save it to a file, and then use FSO or whatnot to make changes and then load it again.
Or if you had the notepad as something that you have variables for (a table of stats, or whatever) you can just re-generate that table.
You can use getnotepadtext (and then make change, and set it back).
Or, you can save it to a file, and then use FSO or whatnot to make changes and then load it again.
Or if you had the notepad as something that you have variables for (a table of stats, or whatever) you can just re-generate that table.
Yeah I know about the work arounds but what I was going to do would make it a little difficult to tie everything together consider I have stuff all over the place. I figured since there was a goto line dialog it wouldn't be too hard to allow the use of referencing lines with a function.
GetNotepadText returns the exact text (with linebreaks and everything), so you should be able to use that to edit it by lines, and then clear/re-set the notepad.
You can make a function to do it (so you can indeed reference it with a function).
You can make a function to do it (so you can indeed reference it with a function).