UDC - Run Script To Support Internal Icons.

Features wanted...
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

UDC - Run Script To Support Internal Icons.

Post by SkyFrontier »

What about User > Manage Commands (CTRL+ALT+F9) > Run Script > Caption to support at least internal icons, ideally external icons, too?

Code: Select all

Caption: Script|:props
At least I could have a better visual hint and easily/fast locate/sort groups of scripts stored that way. And use no icon at all to increase a bit the speed when loading menus, too. Entire UDC could benefit out of it, I think.
Thanks.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

admin
Site Admin
Posts: 65177
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: UDC - Run Script To Support Internal Icons.

Post by admin »

It's a possibility. Maybe later.

admin
Site Admin
Posts: 65177
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: UDC - Run Script To Support Internal Icons.

Post by admin »

I played with it a little and did something you can play with (in v9.60.0006):

These 3 caption formats will work now in UDC caption field:

Code: Select all

Blah|:minitree
BETA versions|C:\Beta\
MarsLanding|
The 1st shows an internal (toolbar) icon.
The 2nd one shows the icon of the passed full path/file (or folder).
The 3rd one will show no icon.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: UDC - Run Script To Support Internal Icons.

Post by SkyFrontier »

admin wrote:I played with it a little and did something you can play with (in v9.60.0006):

These 3 caption formats will work now in UDC caption field:

Code: Select all

Blah|:minitree
BETA versions|C:\Beta\
MarsLanding|
The 1st shows an internal (toolbar) icon.
The 2nd one shows the icon of the passed full path/file (or folder).
The 3rd one will show no icon.
Perfect!!! Thank you very much! :D
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: UDC - Run Script To Support Internal Icons.

Post by TheQwerty »

Code: Select all

    + Script icons: Now relative (to app data path) and portable paths
      are supported.
    + User Buttons: Now relative (to app data path) and portable paths
      are supported.
Okay, Don, so I previously had CTBs with icons of:
"<xypath>\..\Beyond Compare 3\BCompare.exe"
and
"<xyscripts>\Icons\ListOptions.ico"

Now they are blank, so I'm guessing you mistakenly removed XY-var support! :o

EDIT: I feel so incredibly lost now on my toolbar! :cry:

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: UDC - Run Script To Support Internal Icons.

Post by SkyFrontier »

...was about to post the same as TheQwerty.
Plus, testing combinations like
<xydata>\_RES\ICO\LOGO.ico (original)
|\_RES\ICO\LOGO.ico
TestName|<xydata>\_RES\ICO\LOGO.ico
TestName|\_RES\ICO\LOGO.ico
resulted in nothing (or set default CTB icon).
Using the full path is a temporary solution, TQ!

Code: Select all

E:\Programs\_xyplorer_PERM\Data\_RES\ICO\LOGO.ico
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

admin
Site Admin
Posts: 65177
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: UDC - Run Script To Support Internal Icons.

Post by admin »

SkyFrontier wrote:...was about to post the same as TheQwerty.
Plus, testing combinations like
<xydata>\_RES\ICO\LOGO.ico (original)
|\_RES\ICO\LOGO.ico
TestName|<xydata>\_RES\ICO\LOGO.ico
TestName|\_RES\ICO\LOGO.ico
resulted in nothing (or set default CTB icon).
Using the full path is a temporary solution, TQ!

Code: Select all

E:\Programs\_xyplorer_PERM\Data\_RES\ICO\LOGO.ico
Drop the initial slash:
TestName|_RES\ICO\LOGO.ico

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: UDC - Run Script To Support Internal Icons.

Post by SkyFrontier »

Don:

Code: Select all

Drop the initial slash:
TestName|_RES\ICO\LOGO.ico
No go.
(guessing if we're talking on the same subject... I'm referring to what TheQwerty experienced, too)
CTB > Right Click on it > Edit... > Edit User Button:
NAME resets to Test_RES\ICO\LOGO.ico
ICON resets to Test.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

admin
Site Admin
Posts: 65177
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: UDC - Run Script To Support Internal Icons.

Post by admin »

TheQwerty wrote:

Code: Select all

    + Script icons: Now relative (to app data path) and portable paths
      are supported.
    + User Buttons: Now relative (to app data path) and portable paths
      are supported.
Okay, Don, so I previously had CTBs with icons of:
"<xypath>\..\Beyond Compare 3\BCompare.exe"
and
"<xyscripts>\Icons\ListOptions.ico"

Now they are blank, so I'm guessing you mistakenly removed XY-var support! :o

EDIT: I feel so incredibly lost now on my toolbar! :cry:
Yep (mistakenly), confirmed and fixed.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: UDC - Run Script To Support Internal Icons.

Post by TheQwerty »

SkyFrontier wrote:Don:No go.
(guessing if we're talking on the same subject... I'm referring to what TheQwerty experienced, too)
CTB > Right Click on it > Edit... > Edit User Button:
NAME resets to Test_RES\ICO\LOGO.ico
ICON resets to Test.
You're mixing up syntaxes...

Name|Icon is for use in scripts and UDC, where custom icons have been bolted on within the name/caption field.

CTB has separate fields for name and icon, so one gets Name, one gets Icon, and the '|' is not needed.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: UDC - Run Script To Support Internal Icons.

Post by SkyFrontier »

@TheQwerty:
Yes, I did. As you can see, I test EVERY POSSIBLE madness just in case.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: UDC - Run Script To Support Internal Icons.

Post by TheQwerty »

TheQwerty wrote:Now they are blank, so I'm guessing you mistakenly removed XY-var support! :o

EDIT: I feel so incredibly lost now on my toolbar! :cry:
And sanity is restored! :D

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: UDC - Run Script To Support Internal Icons.

Post by SkyFrontier »

Little note in case someone stumbles upon this:
"XYsite|.\xyplorer.exe" was working fine (up to .0005).
Now you have to set stuff like that as: "XYsite|<xypath>\xyplorer.exe".
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: UDC - Run Script To Support Internal Icons.

Post by SkyFrontier »

Small bug:
Icon captions now show icon codes when in presence of a CKS. Does not happen when using default icon (see the 4th from bottom to top, "GaDflashCopy FINAL").
Attachments
ERR_IconCodesOnUDC.jpg
ERR_IconCodesOnUDC.jpg (172.34 KiB) Viewed 2224 times
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: UDC - Run Script To Support Internal Icons.

Post by TheQwerty »

SkyFrontier wrote:Little note in case someone stumbles upon this:
"XYsite|.\xyplorer.exe" was working fine (up to .0005).
Now you have to set stuff like that as: "XYsite|<xypath>\xyplorer.exe".
Yes they are relative to <xydata> now, so unless you have a copy of xyplorer.exe in <xydata> (or <xydata> equals <xypath>), the former won't work.

If they are equal you can still use .\xyplorer.exe:
20101014-155340 -  Screenshot.png
20101014-155340 - Screenshot.png (24.16 KiB) Viewed 2219 times
Don, you might want to consider making the Duplicate Current Command, prepend "Copy of..." instead of appending " (Copy)" now.

EDIT: Also confirming that toggling keyboard shortcuts in menus breaks the caption parsing.

Post Reply