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.
 Entire forum ➜ MUSHclient ➜ General ➜ inserting current time

inserting current time

Posting of new messages is disabled at present.

Refresh page


Posted by Norbert   USA  (61 posts)  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.
Top

Posted by Flannel   USA  (1,230 posts)  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.
Top

Posted by Norbert   USA  (61 posts)  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.
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.


12,561 views.

Posting of new messages is disabled at present.

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.