Sign in to follow this  
Followers 0
eri

How to Compile Image, Icon include in Exe..

5 posts in this topic

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..?? :mellow::(

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

With Resources UDF Here

Share this post


Link to post
Share on other sites

With Resources UDF Here

Thank`s..

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