Quote:
Originally Posted by bense2k
Would it be possible to add a progressbar? Would be practical for download scripts.
|
I'm not sure how well it would work, but such a thing is possible on the Inkview side. There is a Progressbar dialog. To update it, the program needs to regularly make calls to a function that takes the percentage completed as an argument. I suppose it could be set up so that the sh_ivtool app would just read the percentage from an external file whenever it changed and update the progress bar until 100% is reached. The difficulty is in writing that percentage to the file on the download app side. I think you can strip the percentage out from
wget's output, but it takes some work (for example:
http://fitnr.com/showing-file-downlo...sing-wget.html)
It might make more sense to just write an application that takes a URL and target filename as arguments and calls DownloadTo(), assuming that that automatically does the progress bar for you. In fact, such a program would come in handy for downloading the epub-edit.app we've been discussing directly to the ereader. I'll see if I can quickly bang something out for that.