darren Posted July 14, 2004 Share Posted July 14, 2004 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 ? Link to comment Share on other sites More sharing options...
pekster Posted July 14, 2004 Share Posted July 14, 2004 ... 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. Link to comment Share on other sites More sharing options...
ezzetabi Posted July 14, 2004 Share Posted July 14, 2004 (edited) 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 July 14, 2004 by ezzetabi Link to comment Share on other sites More sharing options...
darren Posted July 14, 2004 Author Share Posted July 14, 2004 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 ... 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