fediaFedia on DeviantArthttp://creativecommons.org/licenses/by-nc-sa/3.0/https://www.deviantart.com/fediafedia/art/Select-App-and-ICO-DLL-for-Rainmeter-949098426fediaFedia

Deviation Actions

fediaFedia's avatar

Select App and ICO/DLL for Rainmeter

By
Published:
26.5K Views1 Collected Privately

Badge Awards

Description

Preview speaks for itself.
Another utility that's 10 years late :P But hey

Turns out Rainmeter supports *.ico files, did it always...?
I made a small AutoIT utility that you can integrate into your Skins.

Instead of needing to fill out 3 text fields (Name, Action, Icon), you can literally just have 1 field: Running this tool with a parameter of say:

["SelectAppIco.exe" Type "#CURRENTPATH#" "Program1"]

Will open a "Browse" dialog where the user can select either a *.exe or *.lnk (shortcut) file. After confirming it will automatically extract the Icon, name, and path, filling the UserVariables.inc with the following:

Program1AT=Firefox
Program1A=Shortcuts\Firefox.lnk
Program1I=Icons\Firefox.ico

The lnk and ico files will be copied to the Skin's folder! 
When browsing for an exe file, it will ask you if you want to give a name, otherwise it will take the name of the exe file and capitalize it.

The tool has 6 methods (all are included in the Skin demo):

File
FileAndIcon
Folder
FolderAndIcon
Icon
IconDll

Using IconDll, you can use stuff from shell32.dll or imageres.dll (or any other DLL) directly in your Rainmeter skins

BONUS:

Includes a huge folder of weird Windows shortcuts you can use, based on this:
Launching Windows Special Folders - Rainmeter Documentation

Feel free to use in your Skins. Source code is included, also feel free to modify.

Credits to smashly and ProgAndy for the AutoIt Scripts.

Comments are welcome!

P.S. This will be a huge new feature in Omnimo 11 / BigSur 3
Comments12
Join the community to add your comment. Already a deviant? Log In