Crazy Scripting : IconEx v1.4b - Icon Explorer / Extractor
IconEx-v1.4b 15.33 KiB
IconEx-v1.00 13.21 KiB
Auto complete Address Bar
Credit : Sean
Type a folder path ( or ) the full path to a resource file
What you see is What you Extract
Left Click on an item to Select
and then Right Click on it to Extract
Keyboard user friendly
Go - Default button / Enter would suffice
Browse - Select a folder
File - Sets Control focus to Report view
Icon - Sets Control focus to Icon view
Address Bar - Sets Control focus to Address Bar, like Windows Explorer
Reload - Reloads the script with last viewed Icon[/list]
Previous version :
Download : IconEx 9Kb ( 200 Lines )
Intro: IconEx is a Icon explorer / extractor that will help in extracting icons from resources files ( like EXE, DLL, CPL etc ). An ICON is different from a BITMAP file, in the sense that a BMP will contain only one image whereas an ICON can contain several instances of the image in various resolutions.
With IconEx, you can
[*:2y1jqsrx]Extract all the Icons resources from a resource file in one go
[*:2y1jqsrx]Extract a single Icon ( Icon Group ) from a resource
[*:2y1jqsrx]or just a single Frame/Image from an Icon Group
How to Install ?
No procedures.., IconEx is a single file script with no dependency. Just make sure you create a new folder ( like D:\IconEx ) and place the script in it. The script would create sub folders when you extract icons.
How to explore ?
By default IconEx starts in Windows folder and loads resources with icons in a Report-View. To change it to a different folder, click on the text control that shows the folder path - select your folder - and allow enough time for the Report-View to load.
Double-click on a file name and the Icon-View pane will be refreshed with the Icon groups present in that resource file.
Double-click on an Icon Group and the 12 squares at the bottom of the GUI will show you the different icons present in the group.
How to extract ?
( Refer the screen shot )
To extract all Icon resources from SHELL32.DLL
Keep the Left-Control button down and double-click on SHELL32.DLL on the Report-View pane
You will be prompted with a Message Box:
A sub-folder named SHELL32.DLL will be created on the scripts folder and all icons would be extracted into it.
To extract ICON GROUP 28 from SHELL32.DLL
Keep the Left-Control button down and double-click on Icon Group 28 on the Icon-View pane
You will be prompted with a Message Box:
To extract a single ICON from ICON GROUP 16 of SHELL32.DLL
Just click on any of the 12 squares placed the bottom of the GUI.
The single icons extracted will all be placed in the subfolder named ~Icons
To avoid the Message Box, keep the Left-Control button down while clicking.
Find Target: After extraction, the status bar would be pointing to the Folder or File. Clicking the status bar will open an instance of Windows Explorer with the Folder or File auto-selected.
SHDOCVW.DLL behaves funny.. I have to check on that.
Generally speaking, if you do not see an icon in any one of the 12 squares, you cannot extract that icon.
This project evolved with many simple procedures that I had posted earlier in this topic. I have removed them to reduce the clutter and provide here the links instead:
post1.ahk - Previous Title post
post2.ahk - CopyData() alternate
post4.ahk - LoadIconFromRes()
Edit: All Links in Topic fixed on 09-Aug-2012 - 23:20 GMT
I understand you want to keep this script short as possible, so if you're reluctant to add these features I'll just fork a version for private use Up until now I've been using toralfs Icon Viewer Lite but this one seems promising.
It beats all the similar scripts posted before. Nice job!
Thank you Sir!. You made it my day
you didn´t promise to much!
The best is yet to come..
very impressive !
you rule SKAN
my suggestion is make to react on single click rather than double click
Thanks for sharing
I did try with AltSubmit in LV Options. It triggers the subroutine too many times effecting unbearable flicker. I will try to workaround it.
The loading takes forever to get to shell32.dll when searching through \Windows\System32 on my core 2 duo 2ghz 2gb rams so can you make a way to select an icon file directly?
Sure! I am working on it. The newer version will have Windows explorer's address bar so the user will be benefitted with its Auto-complete facility.
I would like a file browse dialog when saving icons or at least a context menu in the list view that gives me extended export options.
Yes! A GUI script should be that way.. I will try to implement it.
The present way was very convenient during development / testing.
I understand you want to keep this script short as possible
Not for this script. A GUI script needs to be intuitive and mine is short of that.
so if you're reluctant to add these features I'll just fork a version for private use Up until now I've been using toralfs Icon Viewer Lite but this one seems promising.
I will try my best... Icon Viewer Lite has been my favorite too.
Thanks again to everybody!