I was looking at your code and it appears that it only works if the progress bar is one that you made. Try this to see what I'm saying... (Everyone Else: this code requires this udf)
I thought it would be useful if for example you were encoding multiple JPGs into a web page - you'd want a total progress bar for the page, and then child progress bars to show the progress for each individual image encoding. You might even want a parent progress bar if you are encoding multiple pages. My Progress Bar UDF was designed for that type of nesting. I just added another post to try to explain that better.
#include <MWR_Progress.au3> ProgressOn("MWR_Progress UDF Demo", "The Big One") _ProgressCreate('Looping $i... 0% Done', '', 'MWR_Progress UDF Demo') For $i = 1 to 3 _ProgressCreate('Looping $j... 0% Done') For $j = 1 to 4 _ProgressCreate('Looping $k... 0% Done') For $k = 1 to 5 _ProgressCreate('Looping $l... 0% Done') For $l = 1 to 20 sleep(10) _ProgressUpdate($l * 5, $l, 'Looping $l... ' & Round($l * 100 / 20) & '% Done') Next _ProgressDelete() _ProgressUpdate($k * 20, '', 'Looping $k... ' & Round($k * 100 / 5) & '% Done') Next _ProgressDelete() _ProgressUpdate($j * 25, '', 'Looping $j... ' & Round($j * 100 / 4) & '% Done') Next _ProgressDelete() ProgressSet($i * 33) _ProgressUpdate($i * 33, '', 'Looping $i... ' & Round($i * 100 / 3) & '% Done') Next sleep(1000) _ProgressDelete() ProgressOff()
I did a quick search and found this, it works with binary now so i used this as a base even though the code is trivial: Compare Files. I also set the write mode in the examples to 2 for the encode/decode example, i left the html example as an append. Thanks for the Tips! It makes testing this a lot easier now. Get the new _Base64_Example file in the second post
Minor issue in your example is that you write to the files in append mode, so each time you run this they just get bigger. Also you never compare the original file against the decoded file to prove that the encode/decode was flawless.
Thank You for your input, if you/anyone has any more thoughts/ideas/bugs I would like to hear it