Jump to content
Sign in to follow this  
Hyflex

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

Recommended Posts

Hyflex

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?

 
 

Share this post


Link to post
Share on other sites
t1ck3ts

You would want to look at Zedna's Resource UDF @ '?do=embed' frameborder='0' data-embedContent>>
Everything can be done with his resource udf :)

Else, you could use FileInstall() to install the .dll onto the host machine when you run the script.

Share this post


Link to post
Share on other sites
Hyflex

You would want to look at Zedna's Resource UDF @ '?do=embed' frameborder='0' data-embedContent>>

Everything can be done with his resource udf :)

Else, you could use FileInstall() to install the .dll onto the host machine when you run the script.

Looks way to complicated for me lol, I'll do it the FileInstall route :P Hopefully it'll work

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  

×