ExtractIconFromExecutable
Extracts an icon from executable (dll or exe).
OutputVar := ExtractIconFromExecutable(FilePath, IconNumber, Width, Height)
Function Example: hIcon := ExtractIconFromExecutable(A_AhkPath, 1, 16, 16)
Parameters
- OutputVar
The name of the variable in which to store the icon handle.
- FilePath
Path to the executable file (dll or exe).
- IconNumber
The number of icon to extract.
- Width
Width of icon.
- Height
Height of icon.
Related
ResGet, ResExist, ResDelete, ResDllCreate
Example
Gui,+LastFound DetectHiddenWindows,On hIcon := ExtractIconFromExecutable(A_AhkPath,2,16, 16) SendMessage, 0x80, 0,% hIcon SendMessage, 0x80, 1,% hIcon Gui,Show, w400 h300