Jump to content

Progress Bar: Completion Percentage


smti
 Share

Recommended Posts

Hi Folks,

I am attempting to automate the installation of Vipre Anti-virus 5.0. Here is my problem: I need to be able to determine when the installation has completed. Once it has, other steps need to be executed. In an effort to ascertain whether the installation is complete, I am trying to read the percentage complete from the integrated progress bar. It seems that my variable $InstallProgress always returns 0 as the value

Using the window tool, I was able to verify the following:

Control ID of progress bar: 1053

Class: msctls_Progress32

; Now we need to determine the value of the progress bar:
Do
$InstallProgress = GUICtrlRead(1053)
MsgBox(0, "Install Progress...", "Install % is: " & $InstallProgress)
Until $InstallProgress = 100;

; Once Vipre is open -- Go to help --> Register and enter the key.
WinWait("VIPRE Antivirus","CNavFrameMainDlg")
WinMenuSelectItem("VIPRE Antivirus","CNavFrameMainDlg","&Help","&Register...")
WinWait("VIPRE Registration","&Buy Now...")

Any assistance you could provide with regard to determing the value of the progress bar OR whether the installation is complete would be greatly appreciated!

Thanks,

smti

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...