Register forum user name 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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ VBscript ➜ Viewing timer time remaining in h, m, s format

Viewing timer time remaining in h, m, s format

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


Posted by Maelin   Australia  (1 post)  Bio
Date Sun 05 Sep 2004 03:42 AM (UTC)
Message
Basically I have a timer that is counting down, and when it reaches zero it sends a small world.note message to me. It resets itself when a certain trigger runs, all good, no problems.

However, I'd like to be able to make a macro to display a world.note of the remaining time in "Time remaining: Xh, Ym, Zs." format (h-hours, m-minutes, s-seconds). I tried doing this by writing a script to divide the GetTimerInfo (timername, 13) value into its minute and hour sections, and I can calculate it all, but I don't know how to get the macro to call the function, as this is my first delving into the wonders of vbScripting.

Does anybody know of how to call the function from a macro, or is there an easier way to do it that I haven't realised yet?

Cheers,

Maelin
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Sun 05 Sep 2004 05:14 AM (UTC)
Message
make the macro send to the world some text, which is an alias. Then the alias will match (and you can do your scripting or whatever).

You cant call the alias/script directly from a macro.

~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.


10,679 views.

It is now over 60 days since the last post. This thread is closed.     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.