Sign in to follow this  
Followers 0
ZeDMIN

ControlFocus hanging when error pupup occurs

2 posts in this topic

Hi,

i have the following problem: I want to make some automated inputs into an application (probably .NET). This works just fine, but sometimes (not always) it can be that when i input something and change focus to another field afterwards, the application shows an error popup related to the input. I would like to click "proceed" on this error popup, but it seems like the ControlFocus function is hanging while the popup is shown. I tried putting MsgBox before and after the ControlFocus call and could see, that the second MsgBox is only shown after i manually close the error popup.

Is this a bug in ControlFocus? Or can i somehow interrupt the ControlFocus method, if the error popup appears?

Autoit is version 3.3.14.2.

 

With best regards,

Julius

Share this post


Link to post
Share on other sites



No it's the modal msgbox in the .net application. Your script is frozen until this msgbox is closed. You can use same technique as mLipok uses in

 

for a modal JS-msgbox.

 

 

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