Jump to content

Find Icon name (not index) of icl files


siva1612
 Share

Recommended Posts

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
Link to comment
Share on other sites

  • 2 weeks later...

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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...