siva1612 Posted February 27, 2017 Share Posted February 27, 2017 (edited) I'm trying to access the icon name of the icons in an icl file. Usually while creating an icl file in IcoFX, it has two properties for each icon, "Name" & "Resource Name" like in the pic below Usually while inserting an icon, we mention the index no. of the icon. Is there any way to read the "Name" portion of all the icons in a icl library? http://icofx.ro/help2/res.html Edited February 27, 2017 by siva1612 Link to comment Share on other sites More sharing options...
genius257 Posted March 7, 2017 Share Posted March 7, 2017 Hi @siva1612. Yes there is a way Here is an example with a small modification from the example found in the _WinAPI_EnumResourceNames function reference. #include <APIResConstants.au3> #include <Array.au3> #include <WinAPIRes.au3> Local $aData = _WinAPI_EnumResourceNames(@ScriptDir & '\test.icl', $RT_ICON) MsgBox(0, "", _WinAPI_GetLastErrorMessage()) _ArrayDisplay($aData, '_WinAPI_EnumResourceNames') My Scripts: AutoIt Package Manager, AutoItObject Pure AutoIt, Corsair CUE SDK Github: AutoIt HTTP Server, AutoIt HTML Parser Link to comment Share on other sites More sharing options...
siva1612 Posted March 9, 2017 Author Share Posted March 9, 2017 @genius257 Thanks for the help. It doesn't seem to work for me. I've attached here the icl file that I have. When I run the above code, it just lists an array of integer values from 1 to 26. Icons.icl Link to comment Share on other sites More sharing options...
genius257 Posted March 9, 2017 Share Posted March 9, 2017 I think you misunderstand. The integer values are the names, in this case. In the image below you can see how Resource Hacker gives you a more easy view of the resources within the file. My Scripts: AutoIt Package Manager, AutoItObject Pure AutoIt, Corsair CUE SDK Github: AutoIt HTTP Server, AutoIt HTML Parser 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