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, confirm your email, resolve issues, 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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ Notepad lines

Notepad lines

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


Posted by Jestre   (13 posts)  Bio
Date Wed 08 Dec 2004 03:27 AM (UTC)

Amended on Wed 08 Dec 2004 03:29 AM (UTC) by Jestre

Message
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)
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Wed 08 Dec 2004 05:02 AM (UTC)
Message
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.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Jestre   (13 posts)  Bio
Date Reply #2 on Wed 08 Dec 2004 07:50 AM (UTC)
Message
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.
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #3 on Wed 08 Dec 2004 08:20 AM (UTC)

Amended on Wed 08 Dec 2004 08:24 AM (UTC) by Flannel

Message
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).

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
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.


13,984 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.