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
➜ Programming
➜ General
➜ The internal Notepad and its length issues
The internal Notepad and its length issues
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Mkj26
(1 post) Bio
|
Date
| Mon 04 Jul 2005 09:01 PM (UTC) |
Message
| Let me start out by saying that I know NOTHING about coding/or how to code so saying to simply code a fix ... isn't really an opption for me. BUT, here goes.
I use the built in Notepad to catch all the communication from the mud I play. But the problem I am running into is that there is a limit to how long the file can be... Is there anyway you could help me out with some way to change the internal notepad to something like Wordpad or another simple text doc without a file size limitation?? Or a way to send the text from Mushclient into an external document? If there is a way... well hehe I would probably need step by step instructions, as to how to go about it.
Thanks for your time | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #1 on Tue 05 Jul 2005 06:35 PM (UTC) |
Message
| This should be in the mushclient forums, correct?
Do you really need to be able to scroll all the way back to the beginning of the 20K lines (or whatever the limit is)?
Anyway, there isn't anyway to change the internal mushclient notepad, and if you view the file in another editor, it won't be updated in real time.
However, there is a mushclient command GetNotepadLength, which gets the length of an internal notepad. You could use this to check the length and then save the notepad (via SaveNotepad) to another file (a txt file) once it got 'too big' and then clear the notepad (either clear it, or just write something with 'sendtonotepad' instead of append).
You could also log the lines in addition to sending them to the notepad, and then you wouldn't have to worry about saving the notepad in chunks, because it would all be in the log, you just need to clear the notepad (and then perhaps write the last 200 lines back to it).
A third option would be to just spawn another notepad once the first fills, first one is titled 'chat1' then the new one would be 'chat2', you would have to (again) keep track of the size every so often, but more importantly, you wouldn't be able to use the 'send to notepad' thing in the triggers, which isnt the end of the world, scripting allows you much more flexibility.
Whichever you choose (there are probably others I'm not thinking about), it will require you to get familiar with scripting a bit. But, which sounds like the best option for you? Second is my personal favorite, since it's quite painless, the problem with the third is its going to start sucking up memory (since you'll have multiple huge notepads). But it all depends on how you use the notepad. |
~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.
10,947 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top