mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2003
Posts: 2
D
Devo Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: May 2003
Posts: 2
mIRC has a feature called the "online time". It is the 9th button along (I believe), and it can be set to either show "Time since last manual reset" or "Time since last connection". Origanally, $online used to contain the time depening on which option you chose. However, 6.03 has $online now fixed as a variable which tells you how long you have been connected to the specific server.

Does anyone know of the replacement variable which allows you to access the online time? I have mine set to show the amount of time spent on IRC in total, which at the moment is some 4700 hours, but there is no way I know of to get access to this number.

A search of the forums showed that one other person noticed the same problem, but peoples replys were no use as they seem to misunderstand the problem. Any help would be appreciated, although it looks like this feature could be on the way out frown

Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Code:
alias totalonline1 {
  saveini
  tokenize 44 $readini($mircini,options,n1)
  echo -a $duration($calc((3600 * $5) + (60 * $6) + $7))
}

Code:
alias totalonline2 {
  saveini
  echo -a $replace($gettok($readini($mircini,options,n1),5-7,44),$chr(44),:)
}


Link Copied to Clipboard