Sign in to follow this  
Followers 0
peter1234

Compiling files into exe with the script, how to do?

5 posts in this topic

How can I include bmp files in my compiled program (so that everything is in one exe

file)? And, how do I call them in the program?

Share this post


Link to post
Share on other sites



How can I include bmp files in my compiled program (so that everything is in one exe

file)? And, how do I call them in the program?

Use FileInstall to include the files in the exe. (see the help file)

I am not sure what you mean by "call them in the program".



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

@BigDod:

Thanks. If I understand correctly, it is necessary to install the file somewhere on system and then call it from the script. By "how do I call" I was thinking that I might be able to be use the bmp from within the complied program (I guess not). So I would create a temp folder to put the images in and then erase the folder at end of program. Is that correct?

Share this post


Link to post
Share on other sites

@BigDod:

Thanks. If I understand correctly, it is necessary to install the file somewhere on system and then call it from the script. By "how do I call" I was thinking that I might be able to be use the bmp from within the complied program (I guess not). So I would create a temp folder to put the images in and then erase the folder at end of program. Is that correct?

You can use @TempDir it is already there and you can remove the installed files at the end of the script.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

@BigDod:

Thanks for your help. This works when compiled:

#include <GuiConstants.au3>
FileInstall("AutoIt2.gif", "C:\temp\AutoIt2.gif")
GuiCreate("",@DesktopWidth,@Desktopheight,0,0,$WS_POPUP)
GUICtrlCreatePic("C:\temp\AutoIt2.gif",0,0, @DesktopWidth,@Desktopheight)
GUISetState () 
sleep(4000); 4 seconds
FileRecycle ("C:\temp\AutoIt2.gif")

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  
Followers 0