mIRC Homepage
Posted By: donnah popup clock in mirc - 18/10/03 04:11 PM
I have a clock that worked in mirc before version 6. I need to know what to change the time to...it used to be $rtime. Could someone please help me? Thanks in advance
Posted By: Tsunami Re: popup clock in mirc - 18/10/03 04:15 PM
you can get the time with $time...
Posted By: donnah Re: popup clock in mirc - 18/10/03 04:26 PM
the $time doesn't seem to work for me...but thanks anyway
Posted By: _D3m0n_ Re: popup clock in mirc - 18/10/03 05:04 PM
if u pasted the remote code here that does that maybe someone could help u out .....
Posted By: donnah Re: popup clock in mirc - 18/10/03 06:06 PM
This is the code for the clock I am enquiring about
/$rtime {
set %realtime $rtime
set %hour $token(1,58,%realtime)
set %type AM
if (%hour > 12) { /set %hour %hour - 12 | /set %type PM }
if (%hour = 12) /set %type PM
if (%hour = 0) /set %hour 12
set %min $token(2,58,%realtime)
set %realtime %hour $+ : $+ %min %type
if (%online = on) /set %online %realtime
unset %hour | /unset %min | /unset %type | /return %realtime
Posted By: donnah Re: popup clock in mirc - 18/10/03 06:29 PM
sorry to bother5 everyone...but I got it fixed...thanks
Posted By: Tsunami Re: popup clock in mirc - 18/10/03 06:31 PM
I don't know what your code should return, since it doesn't work on mIRC 6.x, but this is the new code, and it returns 08:30 PM.

Code:
alias rtime {
  VAR %realtime = $time(hh) $+ : $+ $time(nn) $time(TT)
  IF (%online == on) { SET %online %realtime }
  RETURN %realtime
}


dammit, too late frown oh well smile
Posted By: J0ke Re: popup clock in mirc - 18/10/03 06:41 PM
what's the point of this all?

$time(h:nn:ss TT)
Posted By: Tsunami Re: popup clock in mirc - 18/10/03 06:45 PM
I copied his code and changed that, without thinking that I could just use that. Sry :tongue:
© mIRC Discussion Forums