Sign in to follow this  
Followers 0
nick21

Noob Question

3 posts in this topic

Hi, I just joined this forum I have been using this program AutoIt for the very first time, I am using v3.

I have a very easy question, I am looking to add a image to my GUI box.

I tried "GUICtrlCreatePic("C:/spider.jpg", 200, 2, 120, 58)" it works but once I delete the image from my C: and run the .exe file the image is done.

So how do I embed the image into the .exe file

and also same thing about audio how do I embed audio into my exe file

Hope you understand what I am saying as this is my first time using the program and I love it :)

Share this post


Link to post
Share on other sites



Put this at the top of your script:

FileInstall("C:\spider.jpg", @TempDir & "\Spider.jpg")

Then Use This:

GUICtrlCreatePic(@TEMPDIR &"\spider.jpg", 200, 2, 120, 58)

Share this post


Link to post
Share on other sites

thanks worked like a charm..

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