Jump to content
Sign in to follow this  
Mars

Functions

Recommended Posts

Mars

Hello I am a bit new to Autoit coding but I am learning and doing pretty well, so far I have made a couple of very good programs.

Anyway, I wanted to ask if functions run alongside with the script, or if they interupt the script and do their fuction before continuing with the main script? For example if I have a script that hits the hotkey to activate a function that lasts 5 seconds, will the main script continue running while the function is still finishing up?

Thanks for the help ahead of time.

Share this post


Link to post
Share on other sites
Mars

AutoIt is not multi threaded therefore functions interrupt the script.

Alright, thats what I wanted. Also if I make it run another autoit script they will both run at the same time right?

Share this post


Link to post
Share on other sites
Mars

If they are ran seperatley then yes.

Okay, thank you very much for the help, back to learning about GUIs.

Share this post


Link to post
Share on other sites
TerarinK

Multi-Threaded programs can be implemented into Autoit just the case where you have to do extra checks because of it. By using DLL calls you can create another threaded or multiple threads. The case where you program another script and compile it all within one script is perfectly legal and can do its job just as well just they aren't multi-threaded so you got to learn how application talks to another application.

Search up "Multi Threaded Application" to get the details on threads. "Application Communication" could be another one but it is communication between two application that you are looking for


0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.