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.
progress bar
Moderators: JRL, Dorian (MJT support)
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.
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]
[email protected]