Sign in to follow this  
Followers 0
AustrianOak

How to handle the events of two windows

2 posts in this topic

I often run into the problem of when I create two windows I have to create a separate function for the second and it has to have a message loop for it right? So I end up creating another while loop separate from my first one. Well then I lose all the functionality for my first window until I exit the second windows loop.

The only way I can think of fixing it is too copy the first while loop into the second so I can still handle the first windows messages. I know this must be completely 'unethical' and know there has to be a better way.

How do I handle the messages for more than one window?

Share this post


Link to post
Share on other sites



I often run into the problem of when I create two windows I have to create a separate function for the second and it has to have a message loop for it right? So I end up creating another while loop separate from my first one. Well then I lose all the functionality for my first window until I exit the second windows loop.

The only way I can think of fixing it is too copy the first while loop into the second so I can still handle the first windows messages. I know this must be completely 'unethical' and know there has to be a better way.

How do I handle the messages for more than one window?

Make your life easier and use onevent functions.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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