Sets the current progress value.
|value||New value. Range from 0 to 100 for a normal progress bar or negative value for indeterminated progress bar.||50|
Returns "OK" on success.
DescriptionSets the current progress value.
Depending on your range, you need to multiply/divide to get into range from 0 to 100. Typically you can simply do math like this: $index * 100 / $total. That calculates the percentage of files processed if you have $total files and current file index is $index.
If you process more than 100 items, please consider only updating progress if you actually moved forward 1%. You can do this by keeping variable with last progress you set and update only if new progress value is bigger.
Please do not call this function more than one time per second to avoid the progress window redraw to slow down your process.
Set progress bar to indeterminate while preparing operations:
Set later progress bar to current value:
Update only when changed by one percent:
Feedback: Report problem or ask question.