mIRC Homepage
Posted By: uicnren $online ? - 17/02/05 04:14 PM
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 ?
Posted By: LostServ Re: $online ? - 17/02/05 04:28 PM
/help $uptime
Posted By: sparta Re: $online ? - 17/02/05 05:02 PM
try: //echo -> $duration($online)
Posted By: uicnren Re: $online ? - 17/02/05 05:12 PM
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.
Posted By: uicnren Re: $online ? - 17/02/05 05:14 PM
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.
Posted By: sparta Re: $online ? - 17/02/05 06:58 PM
$duration($uptime) give your windows uptime, that means since u last rebooted your computer
Posted By: uicnren Re: $online ? - 17/02/05 07:15 PM
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 ?
© mIRC Discussion Forums