// Initialisation break.open(Type your text here); break.min=0; //enter the min value of you counter here break.max=60; // enter the max value of you counter here int counter=0; // initialisation of your counter
// each time you need your progres bar to be updated: counter+=1; break.set(counter);
// close your progress bar in the end break.close();
If anything goes wrong inside your code, it will be terminated and your progress bar will stay visible. To close it, you can type break.close(); in script window or command window