Jump to content

A way to incorporate .au3 and .dll files and images into a complied program?


 Share

Recommended Posts

Hey Guys,

I use Skype.au3, ImageSearch,au3 and ImageSearch.dll and a bunch of images in a few of my scripts and rather than having them as files in the same directory as my script can I have them inside the .exe?

Obviously for the autoit files I can use #include <ImageSearch.au3> or for the location #include "[path]filename" but how can I do it for the images and the dll files?

For example part of my imagesearch is the following:

Local $ImageSearch = _ImageSearch(@ScriptDir & "/Resources/" & "LCP.png", 1, $XCoords, $YCoords, 5)

I would like to turn that into something like:

Local $ImageSearch = _ImageSearch(LCP, 1, $XCoords, $YCoords, 25)

Which would be read from the .exes internal storage rather than a location on the computer (that doesn't mean a bit of code to just set all of the locations of the files at the start of the code turning them into variables...

Any ideas?

 
 
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...