Jump to content

Recommended Posts

Posted

Start condition: A window w/ caption 'Erase' exists

Running AutoItX in java script:

do {
   autoIt.WinClose('Erase');
} while(autoIt.WinExists('Erase'));

Surprisingly, this loop runs for ever.

Issuing

autoIt.WinGetState('Erase');

returns 5: Window exists + Window is enabled

Running the AutoIt example script WinList.au3 does _not_ display a window 'Erase'

Looks like a bad problem in AutoItX?

Posted (edited)

What value does autoIt.WinExists('Erase') return?

Because your title used is only one word then perhaps the window refuses the close message until a child window closes?

:)

Edit:

One consideration is that your loop uses no sleep so it may send an exhaustive amount of messages to the window to close. Windows that normally receive too many messages go into a non responsive state so that maybe is your issue.

Edited by MHz

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
×
×
  • Create New...