View Single Post
Old 01-07-2012, 01:25 PM   #33
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,055
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by bense2k View Post
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.
rkomar is online now   Reply With Quote