UDC: how to use app-icon?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

UDC: how to use app-icon?

Post by MBaas »

I have this UDC to open a file with UEStudio and it works nicely - so I now wanted to make it beautiful and add an icon. I was hoping the caption "UEStudio|%ues%" would do this - but it didn't. I tried the expanded version "UEStudio|"C:\Program Files\IDM Computer Solutions\UEStudio\UEStudio.exe" - but that did not work either. Is there no way to use the resources in EXE directly?
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: UDC: how to use app-icon?

Post by highend »

Even while the quoting is wrong it should have worked...

"UEStudio|"C:\Program Files\IDM Computer Solutions\UEStudio\UEStudio.exe"

Show a screenshot of the config window for that command...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: UDC: how to use app-icon?

Post by MBaas »

Even unquoted does not work:
2016-02-23_14-33-59.png
To see the attached files, you need to log into the forum.
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: UDC: how to use app-icon?

Post by highend »

So when you open the User menu and go to open with, that entry shows no icon?

If that's true, paste this into the address bar and hit enter.

Code: Select all

::if (exists("C:\Program Files\IDM Computer Solutions\UEStudio\UEStudio.exe")) { echo "true"; } else { echo "false"; }
Output?
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: UDC: how to use app-icon?

Post by MBaas »

@highend: Output: "true" - that file exists! ;-)
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: UDC: how to use app-icon?

Post by highend »

echo "%osbitness% - %winver%";

Output?
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: UDC: how to use app-icon?

Post by MBaas »

64 - 10.0
all modern stuff here! ;-)
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: UDC: how to use app-icon?

Post by highend »

Can't reproduce...

Show a screenshot after you've opened the Menu - User - Open With submenu
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: UDC: how to use app-icon?

Post by MBaas »

2016-02-23_15-18-15.png
The file contains the icon, BTW - I checked that ;-) I will now install the latest beta and also re-install UEStudio - and report back then...
To see the attached files, you need to log into the forum.
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: UDC: how to use app-icon?

Post by highend »

Really interesting.

It works fine on my normal system (Server 2012 R2U1) and in a VM with Win 10...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: UDC: how to use app-icon?

Post by MBaas »

That's strange. Even after the restart and re-install I have the same effect. BTW, meanwhile I also added a UDC for YAUM - and that icon is not shown, too!
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: UDC: how to use app-icon?

Post by highend »

Do they work when you use ::fresh;
in the address bar and just setup any of the two for the user commands?
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: UDC: how to use app-icon?

Post by klownboy »

Hi, maybe I missed something, but I'm not sure why you're using a pipe in the caption block to separate title and icon. Typically in the Open and OpenWith menus you can simply specify your title in the "Caption" block and the exec file alone (full path/name) in the Application block. The icon displays fine in this example...
Icon with OpenWith menu.JPG
In this case the app is quoted but it's not need though maybe it would be if you have spaces in the path/name.

Edit: I meant to say that the following unquoted line in the Caption block does work for me also, but it's not need since the above works:

Code: Select all

Jcropper|d:\Graphics\Jcropper\Jcropper.exe
To see the attached files, you need to log into the forum.

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: UDC: how to use app-icon?

Post by MBaas »

Well, when I started I also just had the link to the exe (no %EnvVar%) - and did not see the icon! Which is why I read HLP and added the pipe - and when it still didn't work, I posted what I had at that time.
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: UDC: how to use app-icon?

Post by MBaas »

@highend, I did :fresh and set it up again, but still nothing :((
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

Post Reply