Sign in to follow this  
Followers 0
grtech

**SOLVED**screen timeout

4 posts in this topic

#1 ·  Posted (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 by grtech

Share this post


Link to post
Share on other sites



maybe WinWaitActive?

Share this post


Link to post
Share on other sites

maybe WinWaitActive?

only thing is there is more afterwards

Share this post


Link to post
Share on other sites

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

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