Spider001 Posted September 25, 2014 Posted September 25, 2014 Hey, example file c:autoit.exe (any file) create a button with text on it "autoit" (can be any text) now the question how can i retrive the icon from that file(any file) and use it at the background on that button so i can see the text on the icon? thank you
Moderators JLogan3o13 Posted September 25, 2014 Moderators Posted September 25, 2014 Are you talking about removing the icon from an executable and using it in your script? Typically this is included in the compiled executable, and not something you can pull simply - or even have rights to pull, depending on the exe. (unless I'm misunderstanding what you're after). "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
MikahS Posted September 25, 2014 Posted September 25, 2014 Welcome to the Autoit forum! So, you want to take the icon from other executable and use it in your application? What's the purpose? Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ
Spider001 Posted September 25, 2014 Author Posted September 25, 2014 (edited) thanks MikahS get the icon from exe,bat,lnk,txt,........ and set it on the background from a button so i can still read the text that i want on that same button. just like my photo did not found a way to upload pic Edited September 25, 2014 by Spider001
Jewtus Posted September 25, 2014 Posted September 25, 2014 Have you tried just using an image and then put a label over the image so you click on the label instead of a button (you can even use an image with shadow so it looks like a button)? That's what I did when I created a "lock" button. Little lock image (bmp) and a label over it.
Spider001 Posted September 25, 2014 Author Posted September 25, 2014 my first problem is to get the icon from a file
MikahS Posted September 25, 2014 Posted September 25, 2014 Have a look at >link Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ
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