anystupidassname Posted August 21, 2008 Share Posted August 21, 2008 I've experimented with (If Not) WinExists and WinGetState (5) and both indicate a window exists when it does not which is causing a script to fail. Anybody have any suggestions? I could use some help please and thanks. This signature is computer generated, nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#....... Link to comment Share on other sites More sharing options...
LarryDalooza Posted August 21, 2008 Share Posted August 21, 2008 try If WinExists Not WinGetState(7) AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
anystupidassname Posted August 21, 2008 Author Share Posted August 21, 2008 I guess I wasn't clear. A java app for case tracking spawns a window titled "Cross Reference" I would like to detect if this window exists. Whether or not it actually exists, the following two statements give a wrong result: WinGetState("Cross Reference") returns 5 (1 = exists and 4 = enabled) If Not WinExists("Cross Reference") Then blah EndIf blah never happens This signature is computer generated, nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#....... Link to comment Share on other sites More sharing options...
Kerros Posted August 21, 2008 Share Posted August 21, 2008 I've seen this type of behavior before in different apps, it's not that they don't exist, it's just that the forms are hidden. So while they are not visible on the screen, AutoIT can see see them. I run into this type of behavior with Lotus Notes, and other programs, not Just JAVA applications. What does WinGetState with a 6 give you? Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance. 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