Sign in to follow this  
Followers 0
soteca

Constant conditional checking

4 posts in this topic

Hello I'm trying to create a script that constantly checks for an event while the rest of my script is running. I'm not familiar with how objects or classes work in autoit (or in general for that matter its been several years since my last computer science course), but I was thinking that that would be the best way to go. To explain in a little more detail I want to have one script running doing a predetermined set of events, but once in a while a random popup box will appear and I must click on okay and enter some information to continue on (kind of like you must do on an online driver's education course).

Currently I have this worked around by checking for the popup box with a function call between every action my main script makes, but it would be much better if I could have two separate processes running which communicate with each other. The main process will execute the script, while the other process will do nothing but check for the popup box and once it appears alert the main process that the popup box has appeared. Any help on which functions I should look into would be greatly appreciated. I was thinking that the ObjCreate function could help me with my problem but based on the example provided in the autoit help I'm not quite so sure.

Share this post


Link to post
Share on other sites



I think this function may help you - Function AdlibRegister. Good luck.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

I think this function may help you - Function AdlibRegister. Good luck.

Thanks for the rapid reply. That will definitely help, same functionality but it will clean up my code and make adding new code much much easier. For no reason other than sheer curiosity, is it possible to have two separate autoit scripts and/or functions running at the same time and communicate with each other?

Share this post


Link to post
Share on other sites

It surely is possible to have two Autoit scripts running. To have them communicate with each other, one way would be to have both scripts write to and read from the same file..


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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