bqp2 Posted November 18, 2010 Share 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????? Link to comment Share on other sites More sharing options...
wakillon Posted November 18, 2010 Share 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 Link to comment Share on other sites More sharing options...
JoHanatCent Posted November 18, 2010 Share 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 Link to comment Share on other sites More sharing options...
bqp2 Posted November 18, 2010 Author Share Posted November 18, 2010 Functionsokay i tried something didnt workFunction Check10 linesend funcnow how do i call that function later? Link to comment Share on other sites More sharing options...
Developers Jos Posted November 18, 2010 Developers Share 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. Link to comment Share on other sites More sharing options...
bqp2 Posted November 18, 2010 Author Share 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 Link to comment Share on other sites More sharing options...
Mison Posted November 19, 2010 Share 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 ;) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now