mIRC Home    About    Download    Register    News    Help

Print Thread
#44883 29/08/03 11:19 PM
Joined: May 2003
Posts: 26
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: May 2003
Posts: 26
hey,

when 'upgrading' to mirc 6.xx, my online timer dialog keeps the time, but the $online dosnt return the ammount of time it should, it just returns the current connection time i think.

I know theres a way of fixing this via a little script, writing to mirc.ini every 10mins or somthing.

i tryed to search for it in here, but couldnt find it for the life of me :-|

thanks for any help

#44884 30/08/03 06:55 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Or you could fix the original script itself. If memory serves the $uptime identifier got changed in 6.xx, so that would explain why the older scripts wouldn't work anymore.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#44885 30/08/03 07:29 AM
Joined: May 2003
Posts: 26
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: May 2003
Posts: 26
thats the thing, i dont have the script, i just remember seeing it here ages ago and would like it so i can keep my 4000 hours shocked

#44886 30/08/03 08:29 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
I would advise against writing to the mirc ini while mirc is running. You could simply use a variable for keeping the count.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#44887 30/08/03 07:34 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
alias online {
  saveini
  tokenize 44 $readini($mircini,options,n1)
  echo -a Total online time: $duration($calc((3600 * $5) + (60 * $6) + $7))
}

#44888 30/08/03 09:27 PM
Joined: May 2003
Posts: 26
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: May 2003
Posts: 26
ah, beautiful !

thanks Iori, that was exactly what i was after


Link Copied to Clipboard