AutoHotkey Community

It is currently May 26th, 2012, 5:44 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 52 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Icon Viewer v6 + Lite v2
PostPosted: July 4th, 2005, 4:55 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I always had trouble to get the ID of an icon from a file. So I wrote this viewer (the idea for it I got from the AutoIt3 page).

Below is a lite version as Titan and AGU suggested.

Icon Viewer v5:
Image

Icon Viewer Lite v1:
Image

Feedback is highly appreciated. Thanks

Sourcecode:
Icon Viewer v6
Icon Viewer Lite v2

both require Anchor 3.3

_________________
Ciao
toralf
Image


Last edited by toralf on September 4th, 2006, 12:49 pm, edited 9 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 4th, 2005, 9:40 pm 
Hmm, the script doesn't do anything on my Windows2000 SP4 system. Does it require Admin rights?

I pick the path C:\WinNT\system32 and push scan but nothing happens. I also tried it with other folders. Nothing happens. What am I doing wrong?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 4th, 2005, 9:59 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I don't know what is happening. I have tested it on two PCs (both Win XP with AHL 1.0.36.01 & .02). What version of AHK are you using?

When you select Scan, the button should turn deactive during scan. When the scan is finished the buttons come back to active. So you can tell how long it scaned.

During Scan it loops over all files in that folder (exe, dll, ico, ani, cpl) and checks if they contain icons. Only the once with icons are put into the list.

Maybe you have to check the recursive checkbox.

Edit: It doesn't require admin rights, since I do not have them on one of the PCs.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 4th, 2005, 10:35 pm 
Also on Win2kSP4, the button is disabled for a while, so it seems to be scanning, but no results are shown...

Not-logged-in-daonlyfreez


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 4th, 2005, 11:03 pm 
Ok I see. After updating to 1.0.36.02 (from 1.0.36.01) it worked. Looks nice. :D

Would it be possible to provide some kind of "Stop Scanning" button that stops the reading loop and lists all icons he found so far? Cause the scanning of my system32 directory takes quite some time.

The standard installation path under windows 2000 is C:\WINNT not C:\Windows as in XP. Therefore I always have to change the given path C:\Windows\system32 to C:\WinNT\system32. Wouldn't it be possible to make use of A_Windir to provide a standard path refering to the users os?

S.th like %A_index%\system32


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 4th, 2005, 11:04 pm 
Of course I meant %A_Windir%/system32. Sorry for that A_Index mistake.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2005, 12:48 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
First of all, great script! It's a great icon browser that makes it easy to discover all sorts of nice system icons.

You might want to do SetBatchLines -1 for this script since that should speed up file-scanning and loading.

Minor point: When you generate the AHK command for ImageList, you do not need the quotes around the number: IL_Add(ImageListID, "C:\WINDOWS\system32\cmmon32.exe" , "1"). In general, numbers don't need to be quoted within function calls.

Thanks for sharing this wonderful script. This or one of its successors should probably be added to the Script Showcase (when you're ready and if you wish).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2005, 5:25 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
AGU wrote:
Of course I meant %A_Windir%/system32. Sorry for that A_Index mistake.


Hi AGU, I added A_WinDir two hours before your request to the above code. I know, it is difficult to see, since I only mentioned it below the code. Sorry for that.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2005, 5:28 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Chris wrote:
[...]
You might want to do SetBatchLines -1 for this script since that should speed up file-scanning and loading.

[...]
In general, numbers don't need to be quoted within function calls.

[...]This or one of its successors should probably be added to the Script Showcase (when you're ready and if you wish).


Thanks, I'll let you know when it is ready. I want it to be out in the wild for some time to get feedback first.

I'll implement the above improvements soon. Plus the break of the Scanning as AGU requested.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2005, 7:55 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I updates the first post. It includes all the suggestions I got from you and some more. Thanks again for the feedback.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2005, 12:48 pm 
8) Yet another update, I missed it :P

Now it works fine, thank you toralf!

Not-logged-in-daonlyfreez


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2005, 7:29 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I updated the script in the first post.
Needs AHK 1.0.36.03

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2005, 9:59 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Wow it's impressive. I like the way you've made different view modes and the ability to scan a folder for icons - could there be a way to select a dll (in a fileselectfile) to see it's icons only aswell?

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2005, 3:08 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Hi Titan, currently not.
But maybe you can suggest a nice little mod.
If I find time I'll think about it.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2005, 3:19 pm 
When pressing Scan the button changes to "STOP"
But this STOP is too long for the button in my GUI. STOP gets linebreaked.

Could there be some kind of view mode where you can see all icons in a folder? Because now you have to click an exe to see all icons it contains.

It would be nice, if you'll have a view mode that lists all icons in one listview.
S.th like this.

Exe1Icon1 Exe1Icon2 Exe1Icon3 Dll1Icon1 Dll1Icon2 ...

Understand?


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], XX0 and 13 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group