mIRC Home    About    Download    Register    News    Help

Print Thread
T
tomalak16
tomalak16
T
here's a question for y'all.... is there anything in $timer which can return whether a .delay value is in seconds or ms?

C
codemastr
codemastr
C
If a timer was created with -h or -m specified, then $timer(N).mmt returns $true. This indicates that the delay is in milliseconds. If it returns $false, then the delay is in seconds.

N
Nobodi
Nobodi
N
Did you bother to test that, from testing only a timer started using the -h switch returns $true when using the .mmt property.

T
tomalak16
tomalak16
T
Wrong. .mmt tells you if the timer is multimedia or not. This is accomplished with the -h switch, which happens to force millisecond timing, but under normal circumstances you'd get millisecond timing from -m, which does not create a multimedia timer. This is what I want to test for.

C
codemastr
codemastr
C
Well then it would appear that it can't be done.


Link Copied to Clipboard