Jump to content

Simplifying Help Please


bqp2
 Share

Recommended Posts

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

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

Link to comment
Share on other sites

  • Developers

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?

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

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

Link to comment
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 ;)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...