Jump to content

Recommended Posts

Posted

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
Posted

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!

Posted

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 ~ getENVvars
My 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

 

Posted (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 by Spider001
Posted

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.

Posted

Have a look at >link

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My 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

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...