Jump to content

HELP - Compiling Multiple Scripts


 Share

Recommended Posts

Hi all,

I need a bit of a hand.

First and foremost - I've never coded a day in my life before yesterday, I'm doing everything via Google and Help.

I've managed to create multiple loop based scripts that use a PixelSearch to automate grinding monsters in game - quite perfectly might I add. (Quite proud of myself).

Needless to say, I couldn't figure out how to run multiple loops within a single script.. so I created 7 - Which I am okay with.. I guess.

BUT - I can't seem to figure out how to compile all 7 scripts into an .exe to run simultaneously, the .exe does the FIRST #include and thats all. I'm guessing because it gets stuck in the first loop in that .au3?

The only current way I can activate my scripts is to run all 7 together, which is a bit of a nightmare to stop them all.

To clarify, all 7 of my scripts run a 'While 1 - WEnd' to constantly run a PixelSearch. 

I have attached some examples.

* Attack script screenshot

* Folder contents

* What I tried to compile

*All of my .au3 files.

Bare in mind that I'm a complete novice, I only started this yesterday.

Any help appreciated :)

 

Edited by Jos
Link to comment
Share on other sites

FORGOT TO MENTION - 

The reason I can't get all loops working in one script is because of the Sleep timer I need on certain loops before they start again.

If I put all the loops into one script, the sleep timer within the loop applies to the entire script, all loops, the lot.

I really hope all this make sense to somebody.

Link to comment
Share on other sites

I dont want to act as a wannabee mod but, mods wont let you ask for help if it's about botting games or malware/adwares, or something that could affect the reputation of AutoIt

 

But before your post gets deleted for it, i won't leave you with the question in the air and answer you ( So you dont need to search for help in different forums, so you can learn and use your knowledge to create something better)

 

To "Compile" multiple scripts and run them, i guess there's no legit way to do that.

 

I guess you mean something similar to Batch code "call" which means running the script and saving the information of variables inside the main process.

 

No, sorry... there's no way to do that unless you compile the main script in an .Exe file, however is really complex and it's better to just add the code inside the others scripts to your main code.

 

¡Good luck and happy scripting!

 

 

Cheers, DynamicRookie.

 

 

 

Link to comment
Share on other sites

Thanks for the response.

My apologies in advance I wasn't aware of the circumstances around creating bots.

I guess I need to figure out a way to run multiple loops within a single script and have timers attributed to each loop.

Back to the drawing board!

Link to comment
Share on other sites

There's no way to combine multiple scripts to make a single one.

 

I think what you're trying to do is run multiple loops at once.

 

 

Try with doing this:

 

  • Make different functions to detect whenever a loop is needed
  • Use the statement call to run a certain function, perfect to use with if statement.

Do functions that simply contain the script of your different scripts and run them with call statement

 

 Hope thats you need.

 

 

Cheers, Dynamic.

Link to comment
Share on other sites

  • Developers
4 hours ago, DynamicRookie said:

I dont want to act as a wannabee mod but, mods wont let you ask for help if it's about botting games

Then don't  and simply report the post with the report button! 
Also helping knowingly is not appreciated either so this warning is going to be as much for you as the OP now!

@@Vekas,

I see you did not read those rules, to which I linked, very carefully - you missed the part that says:

"
Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above
"

Do NOT start another thread on this - our patience has limits. :naughty:

Jos,

Welcome to the AutoIt forum. :)

Unfortunately you appear to have missed the Forum rules on your way in. (there is also a link in my signature) 
Please read them now particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. :naughty:

See you soon with a legitimate question I hope. :)

Jos

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

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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