progress bar

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
zuus453

progress bar

Post by zuus453 » Wed Feb 16, 2005 10:40 pm

I'd like to know how to setup a progress bar indicator when a procedure is running.

i.e. like status window when using SENDMAIL_STATUS=1 but only with a bar instead of flickering numbers.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Feb 16, 2005 10:53 pm

Do you specifically want to make a progress bar for SMTPSendMail? If so you're out of luck since SMTPSendMai does not return any status during execution - in fact the script waits until the command completes anyway, so can do no processing while it is busy.

Or was this just an example? Here's a simple example script with a status bar. It's just a loop that increments the progress bar, with a slight pause between iterations so that you can see it working.


Dialog>dlgProgress
Caption=Progress
Top=150
Width=451
Left=20
Height=43
ProgressBar=progressbar,0,0,441,16,0
EndDialog>dlgProgress

Show>dlgProgress

Let>k=1
Repeat>k
Let>dlgProgress.progressbar=k
ResetDialogAction>dlgProgress
Wait>0.1
Let>k=k+1
Until>k,100


In reality you'd set the position of the bar at specific intervals during processing of some task.
MJT Net Support
[email protected]

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