mIRC Homepage
Posted By: IcemanIX Online Timer variable - 16/08/03 09:37 PM
I've had an old alias to display my total online time for a while. Since upgrading to version 6.03 of mIRC, the alias now shows my online time since opening IRC (3 hours, 2 mins, 45 secs for example), not total online time ever. My online timer shows 5568:14:02 and I have "Total Connect Time" checked and "Enable Online Timer" checked. The timer is running. The alias is /on //say mIRC Online Time: $duration($online)
Any suggestions for making it show total online time instead of current-connect online time? Is there a new variable for total online time?
Posted By: CtrlAltDel Re: Online Timer variable - 18/08/03 01:21 AM
click the clock icon on the mirc toolbar .. there is an option there for current connect time, and total connect time
Posted By: skript0r Re: Online Timer variable - 18/08/03 11:22 AM
//say $uptime(server,1)
Posted By: IcemanIX Re: Online Timer variable - 19/08/03 03:01 PM
Those commands are for current uptime. I already said my online timer was setup correctly. Maybe there is no variable in 6.03. Time to rollback from this useless version.
Posted By: tye Re: Online Timer variable - 19/08/03 03:12 PM
I couldn't find any identifier to return the total uptime, but this alias will work:
Code:

totaluptime {
  saveini
  return $calc($gettok($readini($mircini,options,n1),5,44) * 3600 + $&
    $gettok($readini($mircini,options,n1),6,44) * 60 + $&
    $gettok($readini($mircini,options,n1),7,44))
}
Posted By: _D3m0n_ Re: Online Timer variable - 19/08/03 07:47 PM
current uptime? what type of uptime are u looking for? last weeks uptime? longest uptime? uptime if u were from mars? how is mirc to know what uptime your looking for if your not looking for ur current uptime?
© mIRC Discussion Forums