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.
Entire forum
➜ MUSHclient
➜ Suggestions
➜ Multiple Logfiles
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Neva
USA (117 posts) Bio
|
Date
| Sat 17 Jul 2004 09:33 PM (UTC) |
Message
| This is just something that sort of came to me offhand, but eventually, it might be useful to have a feature that'd allow you to have triggers to send things to separate files... similar, perhaps, to sending to a notepad, but just something that saves itself automatically. Or, for that matter, just taking two logs simultaneously in different formats--one with HTML and one without, say.
Inspired by trying to weed OOC conversations out of roleplay logs but having to manually edit and save them seperately in order to not lose anything OOC that might be needed at a later date. ;) | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #1 on Sat 17 Jul 2004 10:29 PM (UTC) |
Message
| You can do it currently, either with sending to notepad (and then saving the notepad at regular intervals) (which is a nice work around for if you arent comfortable with too much scripting), or you can use FSO to write directly to a file. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Neva
USA (117 posts) Bio
|
Date
| Reply #2 on Sat 17 Jul 2004 10:48 PM (UTC) |
Message
| 'FSO' by itself is beyond me, so you might want to not use too many acronyms. ;) Having to intentionally save and periodically erase notepad files defeats the purpose of scripting it; that's as time consuming, if not moreso, than what I'm doing now. | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #3 on Sat 17 Jul 2004 11:33 PM (UTC) |
Message
| It's very easy:
Set fso = CreateObject("Scripting.FileSystemObject")
Set fto = fso.CreateTextFile(File, 2)
(Write to the file using a command i don't remember)
fto.close
done! |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #4 on Sat 17 Jul 2004 11:55 PM (UTC) |
Message
| And you can save with triggers/timers/whatever. So you dont have to do it manually. It doesnt quite defeat the purpose of being time saving. You can also clear notepads via script, and get their lengths, and such.
However, FSO is well documented in the VBscipt help file (or rather, the Windows Scripting Host help file) which can be found... well, its ultimately on microsoft, but you can find a link to it on the page with all the script engine downloads (mushclient forum > list of all inbuilt script functions, then scroll down). It even gives examples, and shouldnt be too hard to copy/paste tweak from there. Well, plus the code Poromenos gave. |
~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.
15,633 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top