mIRC Home    About    Download    Register    News    Help

Print Thread
#42216 16/08/03 09:37 PM
Joined: Aug 2003
Posts: 2
I
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Aug 2003
Posts: 2
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?

#42217 18/08/03 01:21 AM
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
click the clock icon on the mirc toolbar .. there is an option there for current connect time, and total connect time


I refuse to engage in a battle of wits with an unarmed person. wink
#42218 18/08/03 11:22 AM
Joined: Aug 2003
Posts: 5
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Aug 2003
Posts: 5
//say $uptime(server,1)

#42219 19/08/03 03:01 PM
Joined: Aug 2003
Posts: 2
I
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Aug 2003
Posts: 2
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.

#42220 19/08/03 03:12 PM
Joined: Dec 2002
Posts: 16
T
tye Offline
Pikka bird
Offline
Pikka bird
T
Joined: Dec 2002
Posts: 16
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))
}

Last edited by Hammer; 19/08/03 04:34 PM.

Tye on Undernet and DALnet
#42221 19/08/03 07:47 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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?


D3m0nnet.com

Link Copied to Clipboard