haggard Posted August 13, 2010 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
Richard Robertson Posted August 13, 2010 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.
haggard Posted August 13, 2010 Author Posted August 13, 2010 OK, ok what about .png with transparent background. Is any easy way to install that?
Richard Robertson Posted August 13, 2010 Posted August 13, 2010 (edited) FileInstall will work with any file format. It doesn't care. Edited August 13, 2010 by Richard Robertson
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