[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]  General
. . -> [Subject]  inserting current time
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

inserting current time

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


Posted by Norbert   USA  (61 posts)  [Biography] bio
Date Wed 04 Jun 2003 03:48 AM (UTC)
Message
I'm trying to send some stuff to notepad using a trigger, but I want to insert the current time when it's appended to the notepad and I can't seem to figure it out. I've tried using the tokens for logging but they are not working for the notepad or maybe I'm using them wrong. I've also tried doing the DoCommand "InsertDateTime", but that didn't work either. Thank You.

Norbert

-Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens
It's a dumb question... skip it.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #1 on Wed 04 Jun 2003 04:38 AM (UTC)

Amended on Wed 04 Jun 2003 04:41 AM (UTC) by Flannel

Message
Ill assume youre using VBScript (Since thats what youve been using in past posts), Just use the Now function, will give you the current time and date, there are also some other ones, Date, Time, etc.

Put them in as you would a normal variable

World.AppendToNotepad "Log", Now & ": " & Logged_Stuff & vbCrLf


If youre using other languages, there are functions for time there too, but its easiest to do it via the Scripting engine, and not Mushclient.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Norbert   USA  (61 posts)  [Biography] bio
Date Reply #2 on Wed 04 Jun 2003 10:00 AM (UTC)
Message
Thank you so much

Norbert

-Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens
It's a dumb question... skip it.
[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.


3,980 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]