Running one auto it script within another

Recommended Posts

nyxx24 0

nyxx24 0

What I want to know is can I run one autoit script within another, and if so what would I serach in the help file..

The script in question does several things within a while loop and when it gets to one point it repeats the same 15-20 different steps 3 times I am going to increase this to 9 times and I was wondering if I put those 15-20 steps in a seperate script could I have script one pause and run script #2 9 times then continue with the rest of script 1.

I don't think an array would help because the 15-20 steps are all different...

Why? to shorten the script instead of pasting the same thing 9 times.. so I can do it tht way but was looking for an easier neater way to do so..

So if so please point me in the right direction in the help file or other posts so I can try and figure it out

Share this post

Link to post

Share on other sites

nyxx24 0

nyxx24 0

I have posted the code below, the section I wish to repeat I have only shown one time.. between the long comment lines that look like this => ;QQQQQQQQQQQQQQQQQQQ

I want to repeat that multiple times in this case 9 times without having to make the code incredibly long. This is the section that I want to know if I can put it into a seperate file and then have it run however many times in this case 9 times then have this script continue to the end loop and do it all over again..