Sign in to follow this  
Followers 0
autoit8

AutoIt doesn't work when I use it to grab the popup window that's in the same process (different threads)

8 posts in this topic

I'm using AutoItX3 1.0 Type Library in my C# code.

I want to use AutoIt to fill out the username and password of the login pop-up window ( class #32770),

the window will popup when connecting to an Exchange Sever when create an outlook profile

I put the function that will popup the login window in one thread

and put the AutoIt operation on another thread,

and I have a problem , once the login window popup,

AutoIt just get blocked there(no matter what method I call from AutoIt,

I try something like close window but the operations

not relate to AutoIt works like I call other functions or print out something

), after I close the popup window, AutoIt starts working

I don't want to put these two functions into two process.

It's that I did something wrong?

Thank you for any response.

Share this post


Link to post
Share on other sites



It's because it is expected to be loaded in a single threaded environment. It's not designed to perform concurrent operations.

Share this post


Link to post
Share on other sites

You can use it in a multithreaded environment, yes, but you can't make multiple calls to it concurrently.

Share this post


Link to post
Share on other sites

From what I understood he had one thread waiting for a window which meant that the COM object already had an active process.

Share this post


Link to post
Share on other sites

That could very well be the difference. I should have said that COM objects expect a single threaded model.

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