Sign in to follow this  
Followers 0
Spider001

button and pictures

8 posts in this topic

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

Share this post


Link to post
Share on other sites



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).


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

my first problem is to get the icon from a file

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0