Jump to content
Sign in to follow this  
jdickens

GUICtrlCreatePic: Graphic must be on User Machine?

Recommended Posts

jdickens

Running a compiled script on an end user machine, I did not see the nifty company logo on my AutoIt form.

Must graphic file be distributed with exe? Or did I miss something?

$FSVLogo = GUICtrlCreatePic("LOGO FSV CC small3.JPG", 270, 10, 70, 40)

J


If I am too verbose, just say so. You don't need to run on and on.

Share this post


Link to post
Share on other sites
this-is-me

Must graphic file be distributed with exe

Yes. You can use FileInstall to @TempDir to place the jpg on the user's computer, and then display it.

Who else would I be?

Share this post


Link to post
Share on other sites
zcoacoaz

to make sure you have an un used name in the temp dir you can use FileInstall("file.bmp",_TempFile())

EDIT: it would be better to do it like this

$TempImage = _TempFile()

FileInstall ( "file.bmp", $TempImage )

Edited by Xenogis

[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.