Jump to content

Including an image


mbrautigam
 Share

Recommended Posts

Hi everyone,

This is my first post here at the AutoIt Forum. I've been using it for a few weeks now and I think it really is a powerfull tool!

Anyway, my question...

I mada a graphical user interface, in which I want to show an image. The code I'm using for this is as follows:

$Logo = GUICtrlCreatePic("Logo.jpg", 208, 16, 100, 28)

The problem with this code is that the image has to be on present on the computer, in order for it to be shown. My goal is to spread only an .exe file, in which (among other things) the image is shown...

So, is it possible to include an image in the .exe file?

Link to comment
Share on other sites

Rasim, thanks for your reply!!

Unfortunately, I can't get this option to work. What i've done is the following:

FileInstall("Logo.jpg", "%AppData%\My Script\Logo.jpg")

$Logo = GUICtrlCreatePic("%AppData%\My Script\Logo.jpg", 208, 16, 100, 28)

After compiling this and running it, the "My Script" folder in "%AppData%" isn't even created. I've also tried entering the full path of the image, instead of just the filename. But that didn't make any difference...

Could you tell me what I'm doing wrong? Thanks!

Link to comment
Share on other sites

not to confuse you... but you could also open a file and read it in binary... then put the string in the program and write a file with that info in it :)

anyway file install is more than ok:P

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

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