Sign in to follow this  
Followers 0
ExSellerate

Want to display a progress bar until message box appears

2 posts in this topic

I’m using an add-on for ACT! that merges data from contact fields into an Excel File. The operation takes several seconds and when it’s complete a message box is displayed (title:” Excel Quote-Invoice Maker”) indicating that the operation is complete. I’ve written a small script that automates the process and it works, but I’d like to display a progress bar until the message box appears.

Sounds easy enough? Here’s my script:

;Make sure ACT! is on top
WinActivate("Sage ACT! Premium - LRE")
Sleep(100)

; Prompt the user to run the script - use a Yes/No prompt
$answer = MsgBox(4, "LRE Merge Pier Installation Log ", "Do you want to create a Pier Installation Log and attach it to this Contact Record?")

; Check the user's answer to the prompt If "No" was clicked (7) then exit the script
If $answer = 7 Then
    MsgBox(0, "Cancel LRE Merge", "No changes have been made to the contact record")
    Exit
EndIf

;Launch Exponenciel "Excel Quote-Invoice Maker" Addon
Send("!t")
Sleep(100)
Send("{UP}{UP}{UP}{UP}{UP}{ENTER}")
Sleep(100)
Send("{RIGHT}{RIGHT}{ENTER}")
Sleep(100)
Send("{ENTER}")

;I want to add a progress bar until this window appears:
WinActivate("Excel Quote-Invoice Maker")

Share this post


Link to post
Share on other sites



See ProgressOn, ProgressSet, ProgressOff Functions.

and increment progress to each step of your script ! Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0