nick21 Posted April 3, 2008 Share Posted April 3, 2008 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 Link to comment Share on other sites More sharing options...
Swift Posted April 3, 2008 Share Posted April 3, 2008 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) Link to comment Share on other sites More sharing options...
nick21 Posted April 3, 2008 Author Share Posted April 3, 2008 thanks worked like a charm.. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now