Sign in to follow this  
Followers 0
buymeapc

Is there a way to check line speeds with AutoIt?

5 posts in this topic

Just curious if there was a way to check internet line speeds (Up/Down) using AutoIt.

Share this post


Link to post
Share on other sites



Probably a better way than this, but off the top of my head, you could just use IE.au3 to automate a speed test site (already a TON of those) in the backgrounds and then display the results in your GUI.

Share this post


Link to post
Share on other sites

We need more info on what you're going for. Are you wanting throughput speeds? or just link speed determination (100Mb, 128kbps, etc)?

Either way there is nothing directly in AutoIt for that, you'd have to find a separate cmdline utility and call that.

Share this post


Link to post
Share on other sites

I basically want to do a line test for a modem and see what up/down speeds are coming down. It would be the same thing as going to dslreports.com and doing a speed test.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

You could find a fast host(probably some speedtest site), and download a file from there with InetGet(should probably be a few MB's), downloading in the background, then calculate the download speed with @InetGetBytesRead..

Edit:

Something like this perhaps:

Dim $File = "http://support.easystreet.com/easydsl/testfile.bin"

InetGet($File, @TempDir & "\testfile.bin", 1, 1)

Dim $UpdateTimer = TimerInit()
Dim $oldBytesRead = 0

While @InetGetActive
    
    If TimerDiff($UpdateTimer) > 1000 Then ; 1 Second
        
        ConsoleWrite("Download Speed: " & ((@InetGetBytesRead-$oldBytesRead)/1024) & " kB/s" & @LF)
        $oldBytesRead = @InetGetBytesRead
        $UpdateTimer = TimerInit()
        
    EndIf
    
WEnd
Edited by FreeFry

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0