mIRC Homepage

# internet connection time

Posted By: Cheech

## internet connection time - 09/02/03 05:29 PM

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
Posted By: Cheech

## Re: internet connection time - 10/02/03 01:31 AM

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 Posted By: PeteM ## Re: internet connection time - 10/02/03 01:36 AM 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
Posted By: Cheech

## Re: internet connection time - 10/02/03 01:41 AM

thx for the reply i didnt think there was anything because i went thru the help for hours .. lol
Posted By: PeteM

## Re: internet connection time - 10/02/03 01:49 AM

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
Posted By: PeteM

## Re: internet connection time - 10/02/03 02:31 AM

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
Posted By: PeteM

//echo -a $dll(moo.dll,connection,) all i can bring up oh well theres my use of the searching the net today.. Posted By: Cheech ## Re: internet connection time - 10/02/03 02:37 AM 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 Posted By: DarkHaven ## Re: internet connection time - 10/02/03 03:53 PM 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
Posted By: PeteM

## Re: internet connection time - 10/02/03 04:04 PM

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