Jump to content

Software Package Question


WesW
 Share

Recommended Posts

Hello, I am installing a few Apps and I am trying to build a package. What is the best way to go from program to program? I am using buttons now. once the apps are complete I push the next button to run the next program. I would like to eliminate to buttons and have everything run automated. Thanks for your help...

Run("\\Network path")
            WinWaitActive("Bentley AutoPLANT P&ID V8i","")
            Send("{ENTER}")
            WinWaitActive("Bentley AutoPLANT P&ID V8i","")
            Send("{ENTER}")
            WinWaitActive("PID Setup","Do you wish to install these components?")
            Sleep(1000)
            Send ('{LEFT}')
            Send("{ENTER}")
            WinWaitActive("P&ID V8i (SELECTseries 2)","Welcome to the Install for P&&ID V8i (SELECTseries 2)")
            Sleep(3000)
            Send('{ENTER}')
            WinWaitActive("P&ID V8i (SELECTseries 2)","License Agreement")
            Send ('{UP}')
            Send("{ENTER}")
            WinWaitActive("P&ID V8i (SELECTseries 2)","Custom Setup")
            Send("{ENTER}")
            WinWaitActive("P&ID V8i (SELECTseries 2)","Ready to Install the Program")
            Send("{ENTER}")
            WinWaitActive("P&ID V8i (SELECTseries 2)","Install Completed")
            Send("{ENTER}")

            
                        Run("\\Network Path")
            WinWaitActive("Bentley Process & Instrumentation V8i","")
            Send("{ENTER}")
            WinWaitActive("Bentley Process & Instrumentation V8i","")
            Send("{ENTER}")
            WinWaitActive("P&IW V8i (SELECTseries 2)","Welcome to the Install for P&&IW V8i (SELECTseries 2)")
            Sleep(5000)
            Send('{ENTER}')
            WinWaitActive("P&IW V8i (SELECTseries 2)","License Agreement")
            Send ('{UP}')
            Send("{ENTER}")
            WinWaitActive("P&IW V8i (SELECTseries 2)","Custom Setup")
            Send("{ENTER}")
            WinWaitActive("P&IW V8i (SELECTseries 2)","Ready to Install the Program")
            Send("{ENTER}")
            WinWaitActive("P&IW V8i (SELECTseries 2)","Install Completed")
            Send("{ENTER}")
Link to comment
Share on other sites

I suppose instead of sending "enter" to click the finish button you could use ProcessClose() to kill the process since it's finished anyway.

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

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...