Jump to content

Recommended Posts

Posted

Okay i made a very big script that does many different things

Problem is when one thing messess up it throws whole script off

can i make like a different script for each task then a main script that calls them one after another this way when one section messes up the other 4 are still gonna get done?????

Posted

Okay i made a very big script that does many different things

Problem is when one thing messess up it throws whole script off

can i make like a different script for each task then a main script that calls them one after another this way when one section messes up the other 4 are still gonna get done?????

Yes you can ! Posted Image

AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0WIN 11 24H2 X64 - Other Examples Scripts

Posted (edited)

can i make like a different script for each task then a main script that calls them one after another this way when one section messes up the other 4 are still gonna get done?????

Functions Edited by JoHanatCent
Posted

Have you looked in the helpfile for the explanation?

yes and according to them help files and the example it uses it looks like another version of do & while

I have a script that checks time of hour

if @min < 15 then

there is like 10 to 12 lines

endif

now i just cut and paste that after every section so it constantly checks the time before each action but there has to be a cleaner way of doing it

Posted

Use "run" command -

;master.au3
Run(@AutoItExe&" msg.au3")

;msg.au3
MsgBox(0,"","Printing...")

If msg.au3 got terminated, your main script won't be affected. This will only works for one way call, say the main script calls the other script to do something without returning any value. For two way communication, and

Hi ;)

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
×
×
  • Create New...