Jump to content
Sign in to follow this  
darren

WinWaitActive and Screen Saver

Recommended Posts

darren

Hi All,

I have written a script that sits and waits (using WinWaitActive) for a certain window to popup. When the window pops up it closes it.

I am running on NT and Win2k and my problem is that if I have the screen locked via C-A-D - lock computer the winwaitactive does not return. As soon as I unlock the computer I see the popup and then it immediately gets killed by my utility. I have also tried to use WinWait instead - same result.

Any Ideas ? :ph34r:

Share this post


Link to post
Share on other sites
pekster

... As soon as I unlock the computer I see the popup and then it immediately gets killed by my utility.

Isn't this what you said you designed your script to do? Wait for a window to exist and close it?

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Share this post


Link to post
Share on other sites
ezzetabi

Maybe he wants to kill the popup even before?

In that case we have to know how do you try to close the window.

Sending a keystroke may not work, but WinClose should.

Edited by ezzetabi

Share this post


Link to post
Share on other sites
darren

Sorry All - The problem was that I had 2 WinWaitActive calls. I had only changed one of them to WinWait. Once the screen lock was on the window was not deemed to be 'active' until I unlocked the screen.

Thanks for all replies ...

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  

×