# Update progress bar from within a script

**URL:** <https://forum.inductiveautomation.com/t/update-progress-bar-from-within-a-script/21995>\
**Category:** Ignition\
**Created:** [January 19, 2019, 4:45pm UTC](https://forum.inductiveautomation.com/t/update-progress-bar-from-within-a-script/21995 "2019-01-19T16:45:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [January 19, 2019, 5:08pm UTC](https://forum.inductiveautomation.com/t/update-progress-bar-from-within-a-script/21995/2 "2019-01-19T17:08:26Z")

</div>

> [@Progress Bar](http://forum.inductiveautomation.com/t/progress-bar/1130/2):
>
> Sure, you can have a function that you run using invokeAsynchronous, and pass to it a reference to a progress bar component. Then use invokeLater’s to update progress bar (updates to the progress bar shouldn’t come directly from a background thread - invokeLater’s will get processed on the GUI thead)

---

_[View the full topic](https://forum.inductiveautomation.com/t/update-progress-bar-from-within-a-script/21995)._
