Viewing timer time remaining in h, m, s format

Posted by Maelin on Sun 05 Sep 2004 03:42 AM — 2 posts, 11,000 views.

Australia #0
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
USA #1
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.