[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  Multiple Logfiles
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Multiple Logfiles

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


Posted by Neva   USA  (117 posts)  [Biography] 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. ;)
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] 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.
[Go to top] top

Posted by Neva   USA  (117 posts)  [Biography] 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.
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] 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!
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] 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.
[Go to top] 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.


4,182 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]