Jump to content
Sign in to follow this  
bennyvo

compile to exe

Recommended Posts

bennyvo

#include <GUIConstants.au3>

Opt("GUIOnEventMode",1)

GUICreate("hello", 250, 150)

$Pic_1 = GuiCtrlCreatePic("hello.jpg", 0, 0, 250, 150)

GUISetOnEvent($GUI_EVENT_CLOSE,"OnExit")

GUISetState() ; display the GUI

hi, i got this form and a picture on the form, when i compile the script, the picture did not implement into the exe.

anyone know how i can implement this picture into an exe file so i don't have to have a picture and an exe file for the picture to show when i run it.

thanks/... :)

Share this post


Link to post
Share on other sites
Lazycat

Files are not automatically included into compiled exe. You should include them with FileInstall function and then extract into some (usually temporary) folder.

#include <GUIConstants.au3>
Opt("GUIOnEventMode",1)
GUICreate("hello", 250, 150)

FileInstall("hello.jpg", @TempDir & "\hello.jpg")
$Pic_1 = GuiCtrlCreatePic(@TempDir & "\hello.jpg", 0, 0, 250, 150)

GUISetState(); display the GUI

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  

×