Extracts an icon group from an EXE/DLL.
IconExtract(filename, icon filename, index)
(s) filename specifies a fully qualified filename of the EXE or DLL from which the icon group will be extracted.
(s) icon filename specifies the name of the ICO file to which the icon group will be written. If the file exists, it will be overwritten.
(i) index specifies the ordinal position in "filename" of the icon group to be extracted, where the first icon group is 1.
(i) returns the number of images in the icon group that was extracted.
num = IconExtract(StrCat(DirWindows(0),"notepad.exe"), "ICONFILE.ICO", 1) Message("Number of images in icon group extracted ",num) Exit