bennyvo Posted March 30, 2005 Share Posted March 30, 2005 #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/... Link to comment Share on other sites More sharing options...
Lazycat Posted March 30, 2005 Share Posted March 30, 2005 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 Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
bennyvo Posted March 30, 2005 Author Share Posted March 30, 2005 thanks for the code Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now