Can rainmeter use icons from shell32.dll etc. in image meter? I tried to google this and tried a few things but did not get any promising results, sorry if i missed it.
I'd rather not extract the icons from shell32.dll or netshell.dll etc.
It is currently April 20th, 2024, 4:54 am
Use windows .dll icons?
-
- Posts: 55
- Joined: November 27th, 2016, 1:51 pm
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Use windows .dll icons?
No, unfortunately it can't. The supported image formats are:theimmersion wrote: ↑June 2nd, 2019, 12:02 pm Can rainmeter use icons from shell32.dll etc. in image meter?
Supported image formats are .png, .jpg, .bmp, .gif (no animation supported), .tif, and .ico.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Use windows .dll icons?
No. Although you can use the FileView plugin to extract and use the icon for a file, normally a .exe or .dll executable will have icons, it will default to just the first icon in the file (in the case of a .exe) or the generic dll icon (in the case of a .dll). This won't help with icon "libraries" like shell32.dll. You are going to have to use some utility program that can extract the icon resources you want to use from these files.
https://www.nirsoft.net/utils/iconsext.html
https://www.nirsoft.net/utils/iconsext.html
-
- Posts: 55
- Joined: November 27th, 2016, 1:51 pm
Re: Use windows .dll icons?
Awww, a shame. Oh well.
Thanks for quick replies!
Thanks for quick replies!
-
- Posts: 424
- Joined: February 8th, 2015, 10:07 pm
- Location: EU, Denmark.
Re: Use windows .dll icons?
I know you'd rater not, but there are many command line programs out there, that can extract icons from system dll's but i have found that Any2Ico does it best.
Because you can tell it where to save the icon, and what name to call it.
So in your skin the Bang syntax could be something like this:
[#IconExtractResExePath# -res=imageres.dll,26 "-icon=#@#Icons\HDD.icon" -formats=32]
I have replaced my system icons, but you get the idea...
Would prefer a native solution, but hey, it does the job now.
Because you can tell it where to save the icon, and what name to call it.
So in your skin the Bang syntax could be something like this:
[#IconExtractResExePath# -res=imageres.dll,26 "-icon=#@#Icons\HDD.icon" -formats=32]
I have replaced my system icons, but you get the idea...
Would prefer a native solution, but hey, it does the job now.
You do not have the required permissions to view the files attached to this post.
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))