grtech Posted June 5, 2009 Share Posted June 5, 2009 (edited) Hi all I am running a script which runs in domain admin, which only displays the gui and the actual installation, but i have come accross a slight but could be big issue. if i cancel the installation it stays at a blank screen and does not finish the script. is there a way i could have the script timeout on a screen appearing and then log off. ie if the screen, installer does not appear then logout but if it does appear wait for next window. hope this makes sense. Thanks Edited June 5, 2009 by grtech Link to comment Share on other sites More sharing options...
oMBRa Posted June 5, 2009 Share Posted June 5, 2009 maybe WinWaitActive? Link to comment Share on other sites More sharing options...
grtech Posted June 5, 2009 Author Share Posted June 5, 2009 maybe WinWaitActive?only thing is there is more afterwards Link to comment Share on other sites More sharing options...
grtech Posted June 5, 2009 Author Share Posted June 5, 2009 it all ok managed to figure it out now, thank you. i just used the following IF statement CODE WinWaitClose("Sage Accounts Production Advanced","Check Settings and Install") WinWaitActive("Sage Accounts Production Advanced","Current",10) WinActivate("Sage Accounts Production Advanced","Current") IF WinWaitNotActive("Sage Accounts Production Advanced","Current",1) Then Shutdown(0) Else EndIf 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