Sign in to follow this  
Followers 0
bqp2

Simplifying Help Please

7 posts in this topic

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



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.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

okay i tried something didnt work

Function Check

10 lines

end func

now how do i call that function later?

Share this post


Link to post
Share on other sites

okay i tried something didnt work

Function Check

10 lines

end func

now how do i call that function later?

Have you looked in the helpfile for the explanation?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

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