Sign in to follow this  
Followers 0
flyonthewall

If then

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Kerros

Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

Share this post


Link to post
Share on other sites

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!

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