[HOW TO] Setup a Progress Bar in macro execution

[HOW TO] Setup a Progress Bar in macro execution

This article teach how to implement a progress bar (called also gauge) to show the execution progression of a script. The progress bar can be put inside an existing window or can create a new window if required. It is useful to give a visual feedback to the user while MEGA is executing a time consuming script.

When executing a time consuming script you can setup a Progress Bar to let the user know that something is happening, and also show an estimation of the progress if you know how much steps you will need to complete.

Mega has the MegaProgressControl object to implement progress bars.

If you are inside a wizard then the progress bar will be put in the bottom left corner of the wizard.If you are not in a wizard then a new popup window will appears, just with the progress bar and a status line.