geekforu Posted August 2, 2010 Posted August 2, 2010 is it possible to wait for any window (irrespective of title) till it opens completely ? I need to wait for the next window which opens and then check the title. There is possibility of two different windows being opened for 2 different scenarios when i click the same button. So i need to determine which scenario it is by checking the title of the window displayed. Thanks in advance
AdmiralAlkex Posted August 2, 2010 Posted August 2, 2010 You can't wait for any window, there's always "any" window there. I'm going to assume you meant something like: While 1 Sleep(10) Switch WinGetTitle("[active]") Case "Window 1" ;do something ExitLoop Case "Window 2" ;do something ExitLoop EndSwitch WEnd .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
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