mIRC Home    About    Download    Register    News    Help

Print Thread
#225653 07/09/10 04:50 AM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
With a normal timer, you can return how many seconds there is left until it triggers by using $timer(n/name).secs

But with -m/h timers(that use milliseconds) there isn't a prop to return the time left in milliseconds. I can use the .secs prop and return the seconds left as though passed through $int() but there seems to be no way to accurately get the milliseconds left. I'd like to see it implemented, for the -m/h timers.

Currently when I create a timer inwhich i need to return the milliseconds, I am having to store $ticks in the name or such, then take that value, add the delay to it and then subtract the current $ticks, which makes things a little confusing.

To me it seems if there is a way to return the seconds left for a non-multimedia timer, there should be a way to return the milliseconds for a multimedia timer


I am SReject
My Stuff
Joined: Jan 2009
Posts: 116
Vogon poet
Offline
Vogon poet
Joined: Jan 2009
Posts: 116
Originally Posted By: FroggieDaFrog
Currently when I create a timer inwhich i need to return the milliseconds, I am having to store $ticks in the name or such, then take that value, add the delay to it and then subtract the current $ticks, which makes things a little confusing.


Not to mention that $ticks isn't a real representation of milliseconds.


http://zowb.net

/server -m irc.p2p-network.net -j #zomgwtfbbq
(ssl on port 6697 and 7000)
Joined: Jul 2006
Posts: 4,151
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,151
This has been asked in the past :
https://forums.mirc.com/ubbthreads.php?ubb=showflat&Board=6&Number=144371&Searchpage=1&Main=26827&Words=%2Btimer+%2Bmillisecond&topic=0&Search=true#Post144371
https://forums.mirc.com/ubbthreads.php?ub...true#Post198457
And indeed, this should already exists


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #225693 08/09/10 03:28 AM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
sorry for the re-post then. Guess i didn't go back far enough in my searches


I am SReject
My Stuff
Joined: Jan 2009
Posts: 116
Vogon poet
Offline
Vogon poet
Joined: Jan 2009
Posts: 116
So.. any chance of this being added? (:


http://zowb.net

/server -m irc.p2p-network.net -j #zomgwtfbbq
(ssl on port 6697 and 7000)
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Khaled rarely tells us what he plans to add. smile


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2009
Posts: 116
Vogon poet
Offline
Vogon poet
Joined: Jan 2009
Posts: 116
Originally Posted By: Riamus2
Khaled rarely tells us what he plans to add. smile


I know ;_) I just thought I'd bring this back to attention (:


http://zowb.net

/server -m irc.p2p-network.net -j #zomgwtfbbq
(ssl on port 6697 and 7000)
Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
Shouldn't .secs return a floating point value if a value is specified using the -m/-h switch. Otherwise you are going to have confusion.


Beware of MeStinkBAD! He knows more than he actually does!
Joined: Jan 2009
Posts: 116
Vogon poet
Offline
Vogon poet
Joined: Jan 2009
Posts: 116
Originally Posted By: MeStinkBAD
Shouldn't .secs return a floating point value if a value is specified using the -m/-h switch. Otherwise you are going to have confusion.


That would be a good idea as well. To be honest, I don't really care that much, as long as we get the possibility to get milliseconds from $timer().


http://zowb.net

/server -m irc.p2p-network.net -j #zomgwtfbbq
(ssl on port 6697 and 7000)

Link Copied to Clipboard