Sign in to follow this  
Followers 0
anystupidassname

WinGetState and WinExists seeing ghosts

4 posts in this topic

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#.......

Share this post


Link to post
Share on other sites



try If WinExists Not WinGetState(7)


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

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#.......

Share this post


Link to post
Share on other sites

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.

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