mIRC Home    About    Download    Register    News    Help

Print Thread
#10358 09/02/03 05:29 PM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
i have a few alias and a .dll file i had got a while back for displaying system info
i also have a popup for online time and how many days since i last rebooted my computer i would like to know is thier a way to display how long you have been connected to the internet in this same fashion ?

thx smile

#10359 10/02/03 01:31 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
i was unable to edit this so lets try this ?
i was thinking of using the $uptime identifier but from my understanding from the help file this will only work with 3 variations those being .. Mirc / server / system / ... i tryed tossing in an alternate program but seems no matter what i put in the output is 0 secs so what i am asking really is if a .dll is required for this or is there an identifier that will do what i am asking ?
thx again smile

#10360 10/02/03 01:36 AM
Joined: Jan 2003
Posts: 18
P
Pikka bird
Offline
Pikka bird
P
Joined: Jan 2003
Posts: 18
with mIRC no there isn't any real way to tell, unless you always have mIRC open, and as soon as your connect online, you get onto an irc server then you could just be using $uptime(server,2) as a rough estimate (doesn't help much if you are on a static connection and conected for 6-25 days at a time) i know windows keeps a track of it, not sure where, ill look around, and find the dll + dll call for it

#10361 10/02/03 01:41 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
thx for the reply i didnt think there was anything because i went thru the help for hours .. lol

#10362 10/02/03 01:49 AM
Joined: Jan 2003
Posts: 18
P
Pikka bird
Offline
Pikka bird
P
Joined: Jan 2003
Posts: 18
no there isn't which is a bit of a shame, but yeah as i said when you can be connected up to 25 days at a time, i haven't had one irc server able to keep me connected more then 9 days, so yeah, the rough estimate way just wouldnt work in that case, but yeah i'm still beating google down for some help in your quest

#10363 10/02/03 02:31 AM
Joined: Jan 2003
Posts: 18
P
Pikka bird
Offline
Pikka bird
P
Joined: Jan 2003
Posts: 18
ok from moo.dll you _can_ find how long a dialup connection has been active, cable/adsl otherwise no i've had no luck finding such info, i'm not sure on the dll call, but for more info on moo.dll try its website, http://www.influenced.net/moo.php

#10364 10/02/03 02:34 AM
Joined: Jan 2003
Posts: 18
P
Pikka bird
Offline
Pikka bird
P
Joined: Jan 2003
Posts: 18
//echo -a $dll(moo.dll,connection,)

all i can bring up

oh well theres my use of the searching the net today..

#10365 10/02/03 02:37 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
ok thx again i will check that out i am on a DSL connection but the purpose of the call might be dialup the reason for the call is for ppl who are on timed connections of say 10 hours a month i figured i could write up a script to check it and set a variable then spit out a msg say every 2 hours saying you have 8 hours of internet access remaing or someting of the sort thx again smile

#10366 10/02/03 03:53 PM
Joined: Feb 2003
Posts: 1
D
Mostly harmless
Offline
Mostly harmless
D
Joined: Feb 2003
Posts: 1
12Internet Uptime $gettok($gettok($gettok( $dll(moo.dll,connection,_),2,$asc(@)),1,40),3-,32)
that is what i use to tell internet connection time i am running XP
this is what my connection info looks like using moo.dll that is where i got the infor for internet connection time to use in a popup
Connection: (ISP via Lucent Win Modem @ 24Kb/s for 10h 57m 27s (1.17MB up, 19.00MB down))
hope this helps cool

#10367 10/02/03 04:04 PM
Joined: Jan 2003
Posts: 18
P
Pikka bird
Offline
Pikka bird
P
Joined: Jan 2003
Posts: 18
i don't believe adsl works the same as standard dialup, but yeah that eventually came to mind, another idea that came to me whilst i was at work, if the adsl connection say had under a day connection time limits you could /run command.exe /c ipconfig /all > c:\path\to\my\mircdir\filename.ext and be using $read(filename.ext,w.*Lease Obtained*) grabbing the date from that line, would give you the time the last "dhcp" ip acceptance was granted, im not too sure on how adsl works, but like i say thats an idea, and one way and another there would be a work around for this problem


Link Copied to Clipboard