Jump to content

Recommended Posts

Posted

@Saunders

Excellent job on this project. I was going to get something out. You have beat me to the punch. I have been unable to work on this as of yet. I have been moving, and changing jobs and such. I will get some time this coming week unless yours has been selected as the final version.

Excellent work and suggestions.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

  • Replies 112
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Administrators
Posted

Excellent. The Updater looks better.

Small note: When is interrupted the downloading process, I see that it's not necessary to close the Updater directly...What do you think?  :lmao:

Thanks Rob. o:)

There's no way to cancel a download at the minute so closing the script is the only way.
Posted (edited)

I'll try and add the pause/resume/cancel option later, or tomorrow.

Awesome, looking forward to it.

Once the download is done, I am used to updaters popping up a msgbox asking if you want to run. When the file was downloaded, I didn't know what to do... I didn't notice the buttons had appeared or changed text or something. Other than that it was a flawless update...

Lar.

Okay, the message box is now a prompt with Yes/No, asking if you want to start the installer. Edited by Saunders
Posted

I think that would be better handled by the installation program, not the updater, as I would need to be able to access a full list of all the files updated to be most efficient. I could probably just have it copy the folder to a backup location, but you could easily do that yourself too, couldn't you?

Note: I hadn't checked the Unstable-Revolutions thread when I made that post earlier, and didn't realize that Jon had already added the "abort" ability to InetGet, I'm working on the script now to make the cancel button abort and return to the main GUI, but I have to go right now. You can probably expect to see it sometime tomorrow morning.

Posted (edited)

You know, it's the oddest thing. On the download display, I'm showing how many kilobytes are currently downloaded. While testing something, I wanted it to round off to two decimal places, but I couldn't get it to work.

For some reason, it always seems to Int() or Round() it, even if I just go

$s_DnBytes = @InetGetBytesRead / 1024 & ' KB'

It absolutely will not return decimal places. It's so weird.

Anyway!

Here's a version with a working cancel button!

Goodnight!

Edit: By the way Jon, you don't need to include the CompareVersions.au3 in the install. I've been putting the function directly into the AutoUpdateIt.au3 for the last couple versions. Oh and *GASP* o:) Neither me nor my script are mentioned in the documentation! I'm hurt, tragically. :lmao: In fact, I demand you stop including it with the releases!

I'm kidding, for those of you who didn't catch on.

Edited by Saunders
Posted

Maybe you should try Round ?

Untested, but anyway I think you get it..

$s_DnBytes = Round(@InetGetBytesRead / 1024,2) & " kb"

Good luck !

  • Administrators
Posted

You know, it's the oddest thing. On the download display, I'm showing how many kilobytes are currently downloaded. While testing something, I wanted it to round off to two decimal places, but I couldn't get it to work.

For some reason, it always seems to Int() or Round() it, even if I just go

$s_DnBytes = @InetGetBytesRead / 1024 & ' KB'

It absolutely will not return decimal places. It's so weird.

Anyway!

Here's a version with a working cancel button!

Goodnight!

Edit: By the way Jon, you don't need to include the CompareVersions.au3 in the install. I've been putting the function directly into the AutoUpdateIt.au3 for the last couple versions.

I was really worried for a second there thinking there was some major bug, then I remembered that InetGet actually downloads in packets of 1024 bytes, so by fluke your code will always be a whole number. :lmao:
Posted

@Saunders: I just wanted to say that I think you did a very good job on writing this script. This is exactly the kind of script that will show people the capabilities of AutoIt. Good job! :lmao:

Sincerely yours,Jeremy Landesjlandes@landeserve.com

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...