haggard Posted August 13, 2010 Share Posted August 13, 2010 (edited) Hello How can i add image to my gui with out using Local/Global. I want to save this image to .exe compiled script and when I start bot i will see my image loaded from .exe $Pic1 = GUICtrlCreatePic(@ScriptDir&"\logo.png", 160, 0, 300, 100) dont work Image have transparent background Edited August 13, 2010 by haggard Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 13, 2010 Share Posted August 13, 2010 If Not FileExist(@ScriptDir & "\logo.gif") Then FileInstall("C:\Users\haggard\Documents\AutoItScripts\MyProgram\logo.gif", @ScriptDir & "\") $Pic1 = GUICtrlCreatePic(@ScriptDir & "\logo.gif", 160, 0, 300, 100) Obviously you need to specify the actual path in the FileInstall. I just made up something. Link to comment Share on other sites More sharing options...
haggard Posted August 13, 2010 Author Share Posted August 13, 2010 OK, ok what about .png with transparent background. Is any easy way to install that? Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 13, 2010 Share Posted August 13, 2010 (edited) FileInstall will work with any file format. It doesn't care. Edited August 13, 2010 by Richard Robertson Link to comment Share on other sites More sharing options...
haggard Posted August 13, 2010 Author Share Posted August 13, 2010 Ok, thanks i will try it. Link to comment Share on other sites More sharing options...
playlet Posted August 13, 2010 Share Posted August 13, 2010 (edited) --- Edited August 18, 2016 by playlet 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