mike1305 Posted August 21, 2006 Share Posted August 21, 2006 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. Link to comment Share on other sites More sharing options...
GaryFrost Posted August 21, 2006 Share Posted August 21, 2006 StringFormat SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
mike1305 Posted August 21, 2006 Author Share Posted August 21, 2006 thanks for the quick response frost. Amp Energy Drink: the official sponsor of me scripting at 2AM. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now