How can we use icons embedded within a dll in XY
Normally, it is <full_path_to_dll>, <index_of_resource>
However; I am unable to get this working. This may be possibly a bug
Using dll embedded icons
-
binocular222
- Posts: 1419
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: Using dll embedded icons
I asked this before, Don said impossible. For dll with multiple icons, only the 1st icon is returned
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Using dll embedded icons
You can use embedded icons at least in CTB icon and scripted menu captions. Like this:
I'd asked for ~it too: http://www.xyplorer.com/xyfc/viewtopic. ... ilit=+icon
Code: Select all
"<path_to_resource> /<icon_index>"
"%SystemRoot%\SYSTEM32\shell32.dll /163"I'd asked for ~it too: http://www.xyplorer.com/xyfc/viewtopic. ... ilit=+icon
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
binocular222
- Posts: 1419
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: Using dll embedded icons
Whao, Bravo!
Should do a cleanup on my <xyicons> now
P.S
XY seems to retrieve the wrong icon ID in sheel32.dll
i.e: %SystemRoot%\SYSTEM32\shell32.dll /181 is computer icon, however, XY shows as DVD icon (ID=222)
Should do a cleanup on my <xyicons> now
P.S
i.e: %SystemRoot%\SYSTEM32\shell32.dll /181 is computer icon, however, XY shows as DVD icon (ID=222)
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Using dll embedded icons
What OS are you on? On my system 181 == cdrom icon.
aside from that, Here's the explanation.
======
#181 is the icon's ID in shell32.dll. But XY uses the ordinal position (index) of the icon.[/size]
Though shell32.dll has icon IDs up to #63011,there are actually only 306 icons in total when counted.
=====
Here's what you should do:
Start counting from the first icon, and you'll see that the 181st icon (not ID #181) is indeed the icon you see.
Open XY's property info pane for shell32.dll, and increase the icon counter to 181 (this index number is what XY uses, not the ID) I hope I explained clearly!
aside from that, Here's the explanation.
======
#181 is the icon's ID in shell32.dll. But XY uses the ordinal position (index) of the icon.[/size]
Though shell32.dll has icon IDs up to #63011,there are actually only 306 icons in total when counted.
=====
Here's what you should do:
Start counting from the first icon, and you'll see that the 181st icon (not ID #181) is indeed the icon you see.
Open XY's property info pane for shell32.dll, and increase the icon counter to 181 (this index number is what XY uses, not the ID) I hope I explained clearly!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
binocular222
- Posts: 1419
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: Using dll embedded icons
Any easier method? Browsing icon ONE-BY-ONE in XY properties panel is impractical.
P.S: Previously, I used Nirsoft's Icon Extract to view the ID
P.S: Previously, I used Nirsoft's Icon Extract to view the ID
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Using dll embedded icons
you can click-and-hold the arrows there...binocular222 wrote:Browsing icon ONE-BY-ONE in XY properties panel is impractical.
found a solution: http://www.vlsoftware.net/icons-from-file/download.html
selected icon's index is shown in the statusbar as <index>:<total> (hilited in green)
It's an innosetup installer, extractable with Universal Extractor, and the program itself is portable.
It's initially in Ukrainian, select the green tick button in the toolbar, pick the first menu item, and choose english.
It also tries to go online, probably to check for updates, but I ran it inside Sandboxie...
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
binocular222
- Posts: 1419
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: Using dll embedded icons
Thanks, that works
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Using dll embedded icons
Thanks. I hadn't managed to get it working in CTB either.
"<path_to_resource> /<icon_index>" works fine in CTB.
It would have been great if CFI supported it as well
"<path_to_resource> /<icon_index>" works fine in CTB.
It would have been great if CFI supported it as well
XYplorer Beta Club