Sign in to follow this  
Followers 0
siva1612

Find Icon name (not index) of icl files

4 posts in this topic

#1 ·  Posted (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

resprop.png

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 by siva1612

Share this post


Link to post
Share on other sites



#2 ·  Posted

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')

 

Share this post


Link to post
Share on other sites

#3 ·  Posted

@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

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