eri Posted February 17, 2010 Share Posted February 17, 2010 How to compile image include into Exe.. I have search in this forum and find use Fileinstall to add image or file.. But that is only move file to the spesification folder Not In exe file.. It`s Possible.?? If possible to add image please give me a sample script..?? Link to comment Share on other sites More sharing options...
notsure Posted February 17, 2010 Share Posted February 17, 2010 The purpose of "FileInstall" is to install the file from within the exe to a folder which the exe is pointing add. So if you use FileInstall, the JPEG will be included in the exe. If you start the exe, it will install the JPEG into a folder (tempfolder or w/e) and then you need to point your imagecontrol to that folder. Like @tempfolder\hello.jpg. Link to comment Share on other sites More sharing options...
eri Posted February 17, 2010 Author Share Posted February 17, 2010 The purpose of "FileInstall" is to install the file from within the exe to a folder which the exe is pointing add. So if you use FileInstall, the JPEG will be included in the exe. If you start the exe, it will install the JPEG into a folder (tempfolder or w/e) and then you need to point your imagecontrol to that folder. Like @tempfolder\hello.jpg. U are Right.. this sample script : #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Gui = GUICreate("Sample Picture", 336, 267, 192, 124) $button = GUICtrlCreateButton("Image Button", 16, 216, 105, 33) GUICtrlSetImage(-1, "start.ico", -1) $Pic = GUICtrlCreatePic("Roses.jpg", 8, 8, 321, 169) $Icon = GUICtrlCreateIcon("MyIcon.ico", -1, 208, 200, 89, 57) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd I want use All image in that scirpt without load from @tempfolder or another folder Only from EXE.. It`s Possible..?? Link to comment Share on other sites More sharing options...
hot202 Posted February 17, 2010 Share Posted February 17, 2010 With Resources UDF Here Link to comment Share on other sites More sharing options...
eri Posted February 17, 2010 Author Share Posted February 17, 2010 With Resources UDF HereThank`s.. 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