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
➜ MUSHclient
➜ Bug reports
➜ Insert Time Doesn't work
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tanis
(3 posts) Bio
|
Date
| Sat 08 Feb 2003 12:33 AM (UTC) |
Message
| I try 'control+D' and it doesn't insert the time??
| Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Mon 10 Feb 2003 10:24 PM (UTC) |
Message
| Do you mean in the inbuilt notepad? It did for me. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Tanis
(3 posts) Bio
|
Date
| Reply #2 on Mon 10 Feb 2003 11:06 PM (UTC) |
Message
| Inserts the date and time at the cursor point, in the format of the current locale.
Eg.
Thursday, 15 June 2000, 8:49 AM
Keyboard Shortcut
CTRL+D
Copyright 1999 Gammon Software Solutions | Top |
|
Posted by
| Tanis
(3 posts) Bio
|
Date
| Reply #3 on Mon 10 Feb 2003 11:08 PM (UTC) |
Message
| OH, so the time stamp only works in the notepad?
Won't post in the world window?
My spologies | Top |
|
Posted by
| Magnum
Canada (580 posts) Bio
|
Date
| Reply #4 on Mon 10 Feb 2003 11:27 PM (UTC) Amended on Mon 10 Feb 2003 11:31 PM (UTC) by Magnum
|
Message
| As a workaround, you could write a single script line directly at the prompt. For example, in VBS:
/world.send "say The current time here is: " & now()
Here's a couple of things I did mostly for fun:
<aliases>
<alias
script="Reverse_String"
match="*!REV*"
enabled="y"
ignore_case="y"
>
</alias>
<alias
script="Evaluate"
match="^(.*?)Eval\[(.*?)\](.*?)$"
enabled="y"
regexp="y"
ignore_case="y"
>
</alias>
</aliases>
Sub Reverse_String (AliasName, AliasLine, arrWildcards)
If arrWildcards(1) = " " Then
World.LogSend StrReverse(arrWildcards(2))
Else
World.LogSend arrWildcards(1) & StrReverse(arrWildcards(2))
End If
End Sub
Sub Evaluate (AliasName, AliasLine, arrWildcards)
World.LogSend arrwildcards(1) & Eval(ArrWildcards(2)) & Arrwildcards(3)
End Sub
The first reverses everything after the point where !REV is used on a line. The second Evaluates any math on a line where I used Eval[]. You could easily do something similar to the second, but instead match on text and replace it with the value of the VBS "Now" function. |
Get my plugins here: http://www.magnumsworld.com/muds/
Constantly proving I don't know what I am doing...
Magnum. | 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,590 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top