AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Crazy Scripting : IconEx v1.0 - Icon Explorer/Extractor
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
SKAN



Joined: 26 Dec 2005
Posts: 5298

PostPosted: Sun May 11, 2008 3:18 am    Post subject: Crazy Scripting : IconEx v1.0 - Icon Explorer/Extractor Reply with quote

    * Newer version *

    Download : IconEx-v1.00 13.21Kb ( 325 Lines )



    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



SmileSmileSmile




    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

    • Extract all the Icons resources from a resource file in one go
    • Extract a single Icon ( Icon Group ) from a resource
    • 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 16 from SHELL32.DLL
    Keep the Left-Control button down and double-click on Icon Group 16 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.

    Limitations ?

    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.

    End note:

    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:




    SmileSmileSmile



Last edited by SKAN on Wed May 14, 2008 10:14 pm; edited 2 times in total
Back to top
View user's profile Send private message
ahklerner



Joined: 26 Jun 2006
Posts: 1004
Location: USA

PostPosted: Sun May 11, 2008 3:50 am    Post subject: Reply with quote

Cool! Good Job Very Happy
_________________
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1271

PostPosted: Mon May 12, 2008 12:44 am    Post subject: Reply with quote

Good job little guy! Razz
Back to top
View user's profile Send private message
Z Gecko
Guest





PostPosted: Mon May 12, 2008 2:06 am    Post subject: Reply with quote

very cool,
and all this, just because someone asked if it is possible.
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 5298

PostPosted: Mon May 12, 2008 1:17 pm    Post subject: Reply with quote

ahklerner wrote:
Cool! Good Job Very Happy


Thanks Smile

tic wrote:
Good job little guy! Razz


Thanks. I do not want to grow up. Very Happy

Z Gecko wrote:
very cool,
and all this, just because someone asked if it is possible.


Thanks. Smile The best is yet to come.. Wink


Last edited by SKAN on Tue May 13, 2008 1:15 am; edited 1 time in total
Back to top
View user's profile Send private message
RIST



Joined: 08 May 2008
Posts: 4
Location: C:\ESTONIA\adavere\RIST.rar

PostPosted: Mon May 12, 2008 2:44 pm    Post subject: Reply with quote

hoho Shocked its very cool Very Happy
_________________
Keegi Siin ka Eestlane? Smile
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5298

PostPosted: Tue May 13, 2008 1:10 am    Post subject: Reply with quote

Thanks RIST. Smile

@Everybody:

I have combined my previous code into a GUI based utility.

Smile
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 3877
Location: Pittsburgh

PostPosted: Tue May 13, 2008 1:43 am    Post subject: Reply with quote

It beats all the similar scripts posted before. Nice job!
Back to top
View user's profile Send private message Visit poster's website
Z Gecko
Guest





PostPosted: Tue May 13, 2008 2:23 am    Post subject: Reply with quote

Quote:
The best is yet to come..

you didnīt promise to much!
HOT !
Mr. Green
Back to top
heresy



Joined: 11 Mar 2008
Posts: 131

PostPosted: Tue May 13, 2008 2:31 am    Post subject: Reply with quote

very impressive !
you rule SKAN
my suggestion is make to react on single click rather than double click
Thanks for sharing
_________________
let's support Wiki
automation helper for beginners
Back to top
View user's profile Send private message
Oberon



Joined: 18 Feb 2008
Posts: 408

PostPosted: Tue May 13, 2008 8:17 am    Post subject: Reply with quote

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? As heresy said it would be a lot easier to be able to single click in many places. Finally 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.

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 Razz Up until now I've been using toralfs Icon Viewer Lite but this one seems promising.
_________________
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5298

PostPosted: Tue May 13, 2008 3:39 pm    Post subject: Reply with quote

Laszlo wrote:
It beats all the similar scripts posted before. Nice job!


Thank you Sir!. You made it my day Smile

Z Gecko wrote:
Quote:
The best is yet to come..

you didnīt promise to much!
HOT !
Mr. Green


Thanks ! Smile

heresy wrote:
very impressive !
you rule SKAN
my suggestion is make to react on single click rather than double click
Thanks for sharing


Thanks ! Smile

I did try with AltSubmit in LV Options. It triggers the subroutine too many times effecting unbearable flicker. I will try to workaround it.


@Oberon:

Quote:
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.


Quote:
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.

Quote:
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.

Quote:
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!

Smile
Back to top
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Wed May 14, 2008 8:55 am    Post subject: Reply with quote

Very impressive indeed! Cool

Almost a fullblown Resource Hacker (hint, hint) Wink
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 5298

PostPosted: Wed May 14, 2008 5:23 pm    Post subject: Reply with quote

n-l-i-d wrote:
Very impressive indeed! Cool


Thanks Smile

n-l-i-d wrote:
Almost a fullblown Resource Hacker (hint, hint) Wink


I think I still have a long way to go .. Very Happy
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5298

PostPosted: Wed May 14, 2008 5:46 pm    Post subject: New Version v1.00 Reply with quote

Download : IconEx-v1.00 13.21Kb ( 325 Lines )

Details and screen shot on the Title post.

SmileSmileSmile


Last edited by SKAN on Wed May 14, 2008 10:15 pm; edited 2 times in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group