mIRC Home    About    Download    Register    News    Help

Print Thread
#123637 25/06/05 06:53 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
I think mIRC should have a return value (or whatever you call it) that tells you how many hours, minutes and seconds you have been using IRC from the Timer dialog ... (e.g. 171:21:45)

I created an /IRC alias that does this, but its too slow (as you have to keep doing /saveini)

Code:
/irc {
  saveini
  say I have been using IRC for:  $+ $gettok($readini(mirc.ini, options, n1),5,44) hour(s), $gettok($readini(mirc.ini, options, n1),6,44) minute(s), $gettok($readini(mirc.ini, options, n1),7,44) second(s) $+ 
}


What do you do at the end of the world? Are you busy? Will you save us?
#123638 25/06/05 06:58 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Would that be different to $duration($online,3)?

From the mIRC help file:
$online

Returns the number of seconds elapsed in the Timer dialog.

I note that it only returns the total online time if that's what it's set to in the Timer dialog, though.

#123639 25/06/05 07:05 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
I was refering to total online time

$online is basically the same as $uptime(server,3)

(add that alias to aliases and you might see what I mean ...)


What do you do at the end of the world? Are you busy? Will you save us?
#123640 25/06/05 07:07 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Read what I say and you might see what I mean.

Quote:
I note that it only returns the total online time if that's what it's set to in the Timer dialog, though.

#123641 11/08/05 05:40 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Nevermind ...

since I installed mIRC 6.16 I just use $duration($calc($online + 1),3)

(I was using mIRC 6.03 before that, thats why I was asking)

Last edited by JigsZilla; 11/08/05 05:42 PM.

What do you do at the end of the world? Are you busy? Will you save us?

Link Copied to Clipboard