Jump to content

Recommended Posts

Posted

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.

Posted (edited)

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.

Posted

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.

Posted

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/
Posted

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/

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
×
×
  • Create New...