on-demand custom app icons

Features wanted...
Post Reply
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

on-demand custom app icons

Post by bdeshi »

I'm working with multiple independent XYplorer sessions (windows). Can I get an option and/or scripting command to set a custom app icon per-session?
Kind of like this tweak, but not global and applicable from within the app (ie. while it's running)

Code: Select all

; Tweak: custom app icon
IconFile=
Custom icons are much better at instance differentiation than different title templates - just a glance at the taskbar.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: on-demand custom app icons

Post by Marco »

Code: Select all

; Tweak: custom app icon
IconFile=<xyicons>\<get username>.ico
I have this, depending on the privileges XY is running with (admin or restricted user) I have a different icon.
Not exactly what you have in mind but it can be a starting point for the time being.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: on-demand custom app icons

Post by bdeshi »

Didn't even realize variables can be allowed here!
Tested environment variables and aliases.

Code: Select all

ini key: IconFile=<xyicons>\%xyappicon%.ico
run cmd: set xyappicon=appicons\lib && xyplorer.exe
Aliases also work, but are rather cumbersome; requires XYplorer restart, and it's global too. I'll stick with env.vars for now.

:tup: Thanks for the hint.

Would still like a method to change appicon "on the run".
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

RalphM
Posts: 2090
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: on-demand custom app icons

Post by RalphM »

Are your different windows using different ini's and /data path?
If yes, you could just place a different ico in each of the /data path but with the same name and load this.
Ralph :)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: on-demand custom app icons

Post by bdeshi »

nope, same profile. I just start multiple xy and load specific tabsets when necessary. Very small difference, does not warrant multiple profiles [yet].
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply