Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

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

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
×
×
  • Create New...