Jump to content

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


Recommended Posts

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


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

Link to comment
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?

Link to comment
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.


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

Link to comment
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")
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...