Jump to content

Get ICON from an EXE


AlmarM
 Share

Recommended Posts

Hi,

Im trying to create an application launcher. But I need to create a button with the icon of the .exe the user chooses.

I did some search work but no result. I mean, I found topics about this but its not very clear.

Hope you understand ^^,

AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

Well, this is the topic I ment.

AlmarM

EDIT:

Does anyone know how to get the icon from a .exe?

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

Well, this is the topic I ment.

AlmarM

Still no solution found, mate? Or do you have what you need by now?

Let me know, and I might help you if you still need it.

cheers

You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/
Link to comment
Share on other sites

Still no solution found, mate? Or do you have what you need by now?

Let me know, and I might help you if you still need it.

cheers

My last reply was 4 minutes ago :P

I still need to know how to get the ICON from a .EXE the user selects.

AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

My last reply was 4 minutes ago :P

I still need to know how to get the ICON from a .EXE the user selects.

AlmarM

Yeah, I saw that, but since there were a few hints posted some days ago, I thought you might have solved it.

Okay, let me check my scripts and I'll get back to you.

You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/
Link to comment
Share on other sites

Ok, thank you for helping ^^,

AlmarM

#include <ButtonConstants.au3>

GUICreate("GUI")
$button = GUICtrlCreateButton("", 10, 20, 40, 40, $BS_ICON)
GUISetState ()

While 1
    $GUI_MSG = GUIGetMsg()
    Switch $GUI_MSG
    Case -3
        Exit
    Case $button
        GUICtrlSetImage($button, FileOpenDialog("choose an exe", "", "Executables (*.exe)", 3), 1)
    EndSwitch
WEnd

works for me (with WinXP Pro SP3)

cheers

You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/
Link to comment
Share on other sites

Well thank you!

your my saving angel ^^,

AlmarM

:P

glad I could help.

Now and then I also have to contribute something to this great community :(

have a nice day

You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/
Link to comment
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
 Share

  • Recently Browsing   0 members

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