flyonthewall Posted June 18, 2008 Share Posted June 18, 2008 i believe it would be best to use an IF Statement so my script will not stop, and Im not sure how to write it. below is the beginning of each script. 1st screen if this screen appears, continue on and complete, if not then go to 2nd screen Run('\\server\f1\f2\Disk1\Client\setup.exe') WinWaitActive ("Sage MAS 500 Client Setup", "Installation Requirements") Sleep (500) Send ("!n") WinWaitActive ("Sage MAS 500 Client Setup", "Welcome to the Sage MAS 500 Client Setup Wizard") Sleep (500) Send ("!n") 2nd screen WinWaitActive ("Sage MAS 500 Client Setup", "Welcome to the Sage MAS 500 Client Setup Wizard") Sleep (500) Send ("!n") hope this makes sense. Any help would be great. Thanks Link to comment Share on other sites More sharing options...
Kerros Posted June 18, 2008 Share Posted June 18, 2008 (edited) something like Run('\\server\f1\f2\Disk1\Client\setup.exe') ;; place a reasonable delay here If WinExists("Sage MAS 500 Client Setup", "Installation Requirements") Then WinActivate ("Sage MAS 500 Client Setup", "Installation Requirements") Sleep (500) Send ("!n") EndIf WinWaitActive ("Sage MAS 500 Client Setup", "Welcome to the Sage MAS 500 Client Setup Wizard") Sleep (500) Send ("!n") Edited June 18, 2008 by Kerros Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance. Link to comment Share on other sites More sharing options...
flyonthewall Posted June 18, 2008 Author Share Posted June 18, 2008 something like Run('\\server\f1\f2\Disk1\Client\setup.exe') ;; place a reasonable delay here If WinExists("Sage MAS 500 Client Setup", "Installation Requirements") Then WinActivate ("Sage MAS 500 Client Setup", "Installation Requirements") Sleep (500) Send ("!n") EndIf WinWaitActive ("Sage MAS 500 Client Setup", "Welcome to the Sage MAS 500 Client Setup Wizard") Sleep (500) Send ("!n") i will give it a try. thank you very much for the reply. have a great day! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now