xwinterx Posted June 21, 2006 Share Posted June 21, 2006 I made just a quicky little program that will let me browse through the icons contained in shell32.dll. I create an icon in my gui and use the following code to set the icon image: GUICtrlSetImage(-1, $file , $icon) Where $file = "shell32.dll" and $icon is the icon number. How can I read that specific icon to see if it is blank? I am thinking of making my program just list all of the icons in shell32.dll and possibly from others and want it to stop listing after so many "empty" icons that I believe would be the end of the icon list? I've seen some other programs that will do that already for me, but I want to make it myself. go figure! any help would be appreciated. Link to comment Share on other sites More sharing options...
Lazycat Posted June 21, 2006 Share Posted June 21, 2006 (edited) Calling ExtractIcon function with -1 as icon index will return number of icons in file: $ret = DllCall("shell32.dll", "int", "ExtractIcon", "int", 0, "str", "shell32.dll", "int", -1) MsgBox (0, "Icons:", $ret[0]) Edit: what weird with [autoit] tag? Edited June 21, 2006 by Lazycat Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now