Jump to content
Sign in to follow this  

Include GUI image with compiled script

Recommended Posts

Hi everyone

I've been writing a script which will toggle the read-only attribute on a games-console emulator configuration file.

I'm using a GUI I created with AutoIt Koda and that GUI contains an image.

But when the script is compiled, the image in the GUI doesn't appear.

When compiled, does the script just keep a path reference to the original image files?

Is there a way to have the actual images embedded in the compiled script?

I looked at the function FileInstall but that's not quite what I need.

From the manual it appears FileInstall just lets you copy out the image file into a different location when the compiled script is run.

Ideally I don't want to have to copy the image files out, display the GUI, then delete the image files once the script closes.

I also looked at #include but that appears to just be for including other AutoIt scripts.

Is this possible to do what I'm looking for with compiled scripts?



Share this post

Link to post
Share on other sites

FileInstall is for you:

- it copies image file when you run uncompiled file

- when compiling it embed your image file into your EXE

- it copies image file from EXE to temporary file when you run compiled file

Also look at my resources UDF - with this you can embed image into your EXE and use it without creating temporary files like FileInstall does

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...