mIRC Home    About    Download    Register    News    Help

Print Thread
#111636 17/02/05 04:14 PM
Joined: Jan 2005
Posts: 19
U
uicnren Offline OP
Pikka bird
OP Offline
Pikka bird
U
Joined: Jan 2005
Posts: 19
When using $online is there a different identifier or extension that will allow you to call up current online time or cumulative online time without manually changing the setting manually from the Online Timer Dialog ?

#111637 17/02/05 04:28 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
/help $uptime

#111638 17/02/05 05:02 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
try: //echo -> $duration($online)


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#111639 17/02/05 05:12 PM
Joined: Jan 2005
Posts: 19
U
uicnren Offline OP
Pikka bird
OP Offline
Pikka bird
U
Joined: Jan 2005
Posts: 19
Well, almost.

In any case, I found something interesting(well somewhat)

Code:
//echo #chan online time: $duration($online) | //echo #chan mIRC uptime: $uptime(mirc,1)


Yields this output:

online time: 2days 18hrs 39mins 58secs
mIRC uptime: 2days 18hrs 38mins 22secs

How is it possible I have been connected longer than mIRC has been running ?

Also,

Code:
//echo #chan  normal uptime: $uptime(mirc,1) | //echo #chan duration uptime: $duration($uptime(mirc))


Above should(unless I am mis-reading) provide identical output.

Yields:

normal uptime: 2days 18hrs 46mins 49secs
duration uptime: 397wks 3days 12hrs 19mins 1sec

In any case, $uptime is not the solution to my original question.

#111640 17/02/05 05:14 PM
Joined: Jan 2005
Posts: 19
U
uicnren Offline OP
Pikka bird
OP Offline
Pikka bird
U
Joined: Jan 2005
Posts: 19
Quote:
try: //echo -> $duration($online)


Above works fine, BUT, there are two different possible returns based on the same identifier, depending on which radio button you have ticked in the timer dialog.

Current online time as well as cumulative online time.

I am askin if there is a way to differentiate those two, without manually having to open the timer dialog and tick the appropriate button.

Last edited by uicnren; 17/02/05 05:15 PM.
#111641 17/02/05 06:58 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
$duration($uptime) give your windows uptime, that means since u last rebooted your computer


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#111642 17/02/05 07:15 PM
Joined: Jan 2005
Posts: 19
U
uicnren Offline OP
Pikka bird
OP Offline
Pikka bird
U
Joined: Jan 2005
Posts: 19
Quote:
$duration($uptime) give your windows uptime, that means since u last rebooted your computer


I am quite aware of that.

That however is not what I was seeking. As I used the $uptime(mirc) identifier (I assume that is to what you were referring to, unless of course you were pointing that out to LostServ wink ) that should give me the uptime that mIRC itself has been open, not that of the uptime of the PC. Knowing that, how would it be possible to be connected to a network through mIRC longer than the application has been running ?

Last edited by uicnren; 17/02/05 07:17 PM.

Link Copied to Clipboard