| View previous topic :: View next topic |
| Author |
Message |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Mon Jul 04, 2005 4:55 pm Post subject: Icon Viewer v6 + Lite v2 |
|
|
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:
Icon Viewer Lite v1:
Feedback is highly appreciated. Thanks
Sourcecode:
Icon Viewer v6
Icon Viewer Lite v2
both require Anchor 3.3 _________________ Ciao
toralf 
Last edited by toralf on Mon Sep 04, 2006 12:49 pm; edited 9 times in total |
|
| Back to top |
|
 |
AGU Guest
|
Posted: Mon Jul 04, 2005 9:40 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Mon Jul 04, 2005 9:59 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Jul 04, 2005 10:35 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
AGU Guest
|
Posted: Mon Jul 04, 2005 11:03 pm Post subject: |
|
|
Ok I see. After updating to 1.0.36.02 (from 1.0.36.01) it worked. Looks nice.
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 |
|
| Back to top |
|
 |
AGU Guest
|
Posted: Mon Jul 04, 2005 11:04 pm Post subject: |
|
|
| Of course I meant %A_Windir%/system32. Sorry for that A_Index mistake. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Tue Jul 05, 2005 12:48 am Post subject: |
|
|
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). |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Tue Jul 05, 2005 5:25 am Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Tue Jul 05, 2005 5:28 am Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Tue Jul 05, 2005 7:55 am Post subject: |
|
|
I updates the first post. It includes all the suggestions I got from you and some more. Thanks again for the feedback. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
lazy-daonlyfreez Guest
|
Posted: Tue Jul 05, 2005 12:48 pm Post subject: |
|
|
Yet another update, I missed it
Now it works fine, thank you toralf!
Not-logged-in-daonlyfreez |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Thu Jul 07, 2005 7:29 am Post subject: |
|
|
I updated the script in the first post.
Needs AHK 1.0.36.03 _________________ Ciao
toralf  |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5009 Location: imaginationland
|
Posted: Thu Jul 07, 2005 9:59 am Post subject: |
|
|
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? _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Thu Jul 07, 2005 3:08 pm Post subject: |
|
|
Hi Titan, currently not.
But maybe you can suggest a nice little mod.
If I find time I'll think about it. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
AGU Guest
|
Posted: Thu Jul 07, 2005 3:19 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
|