Sign in to follow this  
Followers 0
mbrautigam

Including an image

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



mbrautigam

FileInstall :)

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

It works!! I just had to create the directory first :)

Share this post


Link to post
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

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