Sign in to follow this  
Followers 0
Holger

IconFileScanner

33 posts in this topic

#1 ·  Posted (edited)

Hi :whistle:

this was originally to test large icons in listview.

It can be used to quick scan exe/dlls/ocx/ico/icl for icons.

Feel free to use and modify it :dance:

Regards

Holger

P.S. icon view mode can be changed by rightlick on the listviews...

Update: 21.07.2007

- now works for Autoit3 V3.2.4.9

- fixed some 'older' Dim entries (thanks to martin)

IconFileScanner.au3

Edited by Holger

Share this post


Link to post
Share on other sites



Wow! Very very cool. Really nice work Holger. Can I make one teeny suggestion? Place something like a "Go" button between the Path bar and the Folder button, so that you can type in your destination instead of using the file select dialog.

Path: [_____________] [Go] [Folder]

Share this post


Link to post
Share on other sites

Holger, this is fantastic! I really like the way it scans all files in the specified folder for icons (I was surprised to see a .tmp file appear in the list).

What would be the likelihood of modifying your code so that filenames can be clicked while the list is still being populated? Scanning my System32 folder took 30 seconds but I was hoping I could look at some files before the 30 seconds had expired. :">

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Updated:

- added: "Go"-button (which has the def-button style so you could press directly'Enter' in the input-combo-field)

- changed: Path-input control to combobox control to save the latest used paths

@Lxp: I have an idea to make it but it could/would be a little bit slower

Edited by Holger

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Updated:

- updated to work with current beta

- a small addition to auto 'refresh' the icons-listview

I just downloaded this and got this error.

C:\programming\iconfilescanner.au3(13,92) : ERROR: $LVS_SMALLICON previously declared as a 'Const'

If Not IsDeclared("LVS_SMALLICON") Then Global Const $LVS_SMALLICON = 0x0002 ;WAS Const

anyideas?

EDIT

or is this one that works with the very latest beta?

Edited by nitekram

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

I just downloaded this and got this error.

C:programmingiconfilescanner.au3(13,92) : ERROR: $LVS_SMALLICON previously declared as a 'Const'

If Not IsDeclared("LVS_SMALLICON") Then Global Const $LVS_SMALLICON = 0x0002 ;WAS Const

anyideas?

EDIT

or is this one that works with the very latest beta?

Here's it is with the corrections to that, also set Global $szCurrentPath = @WindowsDir

Looks good holger, handy little tool

Thanks,

Gary

http://www.autoitscript.com/fileman/users/gafrost/projects/IconFileScanner.au3

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

this is cool.. i'm sure you thought of this already but any chance well be able to save these icons?

Share this post


Link to post
Share on other sites

I am still getting an error

C:\Program Files\AutoIt3\SciTE\Defs\Unstable\Au3Check\au3check.dat

C:\programming\iconfilescanner.au3(70,41) : ERROR: GUICtrlRegisterListViewSort(): undefined function.

GUICtrlRegisterListViewSort(-1, "LVSort")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Any ideas?


All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Share this post


Link to post
Share on other sites

I am still getting an error

C:\Program Files\AutoIt3\SciTE\Defs\Unstable\Au3Check\au3check.dat

C:\programming\iconfilescanner.au3(70,41) : ERROR: GUICtrlRegisterListViewSort(): undefined function.

GUICtrlRegisterListViewSort(-1, "LVSort")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Any ideas?

Make sure you have the latest Scite and Au3Check


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Make sure you have the latest Scite and Au3Check

I will have to do that, as I am sure that I do not have the latest. It is around a month, since I joined this forum. Thanks for your help.


All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Share this post


Link to post
Share on other sites

Nice work! The GUI display is very cool... Kudos!!!

Cheers.. :)

Share this post


Link to post
Share on other sites

Hello Holger

I'm just about to log off tonight, so haven't tested your prog yet - sounds good!

Thought you may be interested in my update to Lazycat's Icon Browser, an earlier post of mine forgot to mention, the right-click SendTo ability, and I've fixed some bugs.

Autoit Programmer's Aids

http://www.autoitscript.com/forum/index.php?showtopic=25084

I like much of what you've done here & elsewhere, your efforts are really appreciated!

KEEP UP THE GOOD WORK!!


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

Could you get it so it downloads the icons from programs?

Share this post


Link to post
Share on other sites

I ran across this again and tried to get it installed - got errors using gafrost's code

C:\Program Files\AutoIt3\IconFileScanner.au3(70,41) : ERROR: GUICtrlRegisterListViewSort(): undefined function.


All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Share this post


Link to post
Share on other sites

I ran across this again and tried to get it installed - got errors using gafrost's code

C:\Program Files\AutoIt3\IconFileScanner.au3(70,41) : ERROR: GUICtrlRegisterListViewSort(): undefined function.

Runs fine for me with 3.1.1.133, had to comment out a few variables, but it works.

;~ If Not IsDeclared("LVS_SMALLICON")                   Then Global Const $LVS_SMALLICON                = 0x0002
;~ If Not IsDeclared("LVS_LIST")                        Then Global Const $LVS_LIST                     = 0x0003
;~ If Not IsDeclared("LVM_SETEXTENDEDLISTVIEWSTYLE")    Then Global Const $LVM_SETEXTENDEDLISTVIEWSTYLE = 0x1036
;~ If Not IsDeclared("LVM_SETCOLUMNWIDTH")              Then Global Const $LVM_SETCOLUMNWIDTH           = 0x101E
;~ If Not IsDeclared("LVM_GETHEADER")                   Then Global Const $LVM_GETHEADER                = 0x101F
If Not IsDeclared("LVM_SETCOLUMN")                  Then Global Const $LVM_SETCOLUMN                = 0x101A
;~ If Not IsDeclared("LVCF_FMT")                        Then Global Const $LVCF_FMT                     = 0x0001
;~ If Not IsDeclared("LVCFMT_RIGHT")                    Then Global Const $LVCFMT_RIGHT                 = 0x0001
;~ If Not IsDeclared("LVS_EX_GRIDLINES")                Then Global Const $LVS_EX_GRIDLINES             = 0x00000001

;~ Global Const $LVFI_PARAM            = 0x0001
;~ Global Const $LVIF_TEXT             = 0x0001
;~ Global Const $LVM_FIRST             = 0x1000
Global Const $LVM_GETITEM           = $LVM_FIRST + 5
Global Const $LVM_FINDITEM          = $LVM_FIRST + 13
;~ Global Const $LVM_SETSELECTEDCOLUMN = $LVM_FIRST + 140

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

I just realized - I have a different version at work than at home.

Does anyone remember that post about running AutoIT on a USB drive?


All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Share this post


Link to post
Share on other sites

I just realized - I have a different version at work than at home.

Does anyone remember that post about running AutoIT on a USB drive?

I have upgraded my work computer

still getting error

C:\Program Files\AutoIt3\beta\Include\IconFileScanner.au3(70,41) : ERROR: GUICtrlRegisterListViewSort(): undefined function.

GUICtrlRegisterListViewSort(-1, "LVSort")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\beta\Include\IconFileScanner.au3 - 1 error(s), 0 warning(s)

3.1.1.133>AutoIT3.exe ended.


All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Share this post


Link to post
Share on other sites

I have upgraded my work computer

still getting error

C:\Program Files\AutoIt3\beta\Include\IconFileScanner.au3(70,41) : ERROR: GUICtrlRegisterListViewSort(): undefined function.

GUICtrlRegisterListViewSort(-1, "LVSort")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\beta\Include\IconFileScanner.au3 - 1 error(s), 0 warning(s)

3.1.1.133>AutoIT3.exe ended.

You getting that error from Au3Check?

You might need to make sure you have the latest SciTE etc... also


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

I got the following error:

C:\autoit\forum\IconScanner.au3 (23) : ==> Can not redeclare a constant.: 
Global Const $LVFI_PARAM            = 0x0001 
Global Const ^ ERROR

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0