Jump to content
Sign in to follow this  
mike1305

character limit

Recommended Posts

mike1305

I have a script that I am making to get my feet wet into things like splashtext and creating loading bars and the such.

InetGet("http://ftp.us.dell.com/network/R105328.EXE", "C:\test.exe", 1, 1)
$MBTOT = InetGetSize("http://ftp.us.dell.com/network/R105328.EXE")
While @InetGetActive
    $MBDL = @InetGetBytesRead / 1024 / 1024
    SplashTextOn("Downloading", $MBDL & "MB/" & $MBTOT & "MB", 300, 100)
    Sleep(250)
Wend

it works fine but it extends the file size and the amount downloaded to like 10 decimal points. any way to cut it to one decimal point, so it only reads say 1.2MB/22.4MB instead of 1.2436534564MB/22.45435345MB?


Amp Energy Drink: the official sponsor of me scripting at 2AM.

Share this post


Link to post
Share on other sites
mike1305

thanks for the quick response frost.


Amp Energy Drink: the official sponsor of me scripting at 2AM.

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  

×