bqp2 0 Posted November 18, 2010 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????? Share this post Link to post Share on other sites
wakillon 403 Posted November 18, 2010 Okay i made a very big script that does many different thingsProblem is when one thing messess up it throws whole script offcan 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 ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
JoHanatCent 13 Posted November 18, 2010 (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 November 18, 2010 by JoHanatCent Share this post Link to post Share on other sites
bqp2 0 Posted November 18, 2010 Functionsokay i tried something didnt workFunction Check10 linesend funcnow how do i call that function later? Share this post Link to post Share on other sites
Jos 2,209 Posted November 18, 2010 okay i tried something didnt workFunction Check10 linesend funcnow how do i call that function later?Have you looked in the helpfile for the explanation? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
bqp2 0 Posted November 18, 2010 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 & whileI have a script that checks time of hourif @min < 15 thenthere is like 10 to 12 lines endifnow 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 Share this post Link to post Share on other sites
Mison 1 Posted November 19, 2010 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 ;) Share this post Link to post Share on other sites