How does the dialog progress bar work?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Scones
Junior Coder
Posts: 32
Joined: Fri Jul 05, 2019 11:21 am

How does the dialog progress bar work?

Post by Scones » Tue Oct 01, 2019 8:47 am

Hi

I want to make a non modal dialog with a progress bar, but the bar wont move an inch?

How does it know when to progress? Is it based on percentage of lines executed? Or do i have to insert points in the script where it should take a step. If so, what is the command?
Last edited by Scones on Tue Oct 01, 2019 10:13 am, edited 1 time in total.

Scones
Junior Coder
Posts: 32
Joined: Fri Jul 05, 2019 11:21 am

Re: How does the dialogue progress bar work?

Post by Scones » Tue Oct 01, 2019 10:12 am

Ok i have now tried this, that i found on the forum

Code: Select all

Let>k=0
Repeat>k
  Add>k,1
  Wait>0.5
  // do stuff
  //  ...
  //  ...
  
  // now update the progress bar
  Add>Dialog1.ProgressBar1,1
  ResetDialogAction>Dialog1
  
Until>k=100
But the ResetDialogAction>Dialog1 resets everything else which i don't want. Any other way for it to update the progress bar?

User avatar
Grovkillen
Automation Wizard
Posts: 1023
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: How does the dialog progress bar work?

Post by Grovkillen » Tue Oct 01, 2019 11:59 am

Have you tried searching the forum?

Code: Select all

SetDialogProperty>Dialog1,ProgressBar1,Position... Etc.

Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts