Page 1 of 2
UDC - Run Script To Support Internal Icons.
Posted: 13 Oct 2010 18:01
by SkyFrontier
What about User > Manage Commands (CTRL+ALT+F9) > Run Script > Caption to support at least internal icons, ideally external icons, too?
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.
Re: UDC - Run Script To Support Internal Icons.
Posted: 13 Oct 2010 20:03
by admin
It's a possibility. Maybe later.
Re: UDC - Run Script To Support Internal Icons.
Posted: 13 Oct 2010 20:39
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.
Re: UDC - Run Script To Support Internal Icons.
Posted: 13 Oct 2010 21:32
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!

Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 16:47
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!
EDIT: I feel so incredibly lost now on my toolbar!

Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 17:00
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
Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 17:30
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
Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 17:48
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.
Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 17:50
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!
EDIT: I feel so incredibly lost now on my toolbar!

Yep (mistakenly), confirmed and fixed.
Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 17:52
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.
Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 18:02
by SkyFrontier
@TheQwerty:
Yes, I did. As you can see, I test EVERY POSSIBLE madness just in case.
Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 21:00
by TheQwerty
TheQwerty wrote:Now they are blank, so I'm guessing you
mistakenly removed XY-var support!
EDIT: I feel so incredibly lost now on my toolbar!

And sanity is restored!

Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 21:36
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".
Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 21:49
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").
Re: UDC - Run Script To Support Internal Icons.
Posted: 14 Oct 2010 22:00
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 (24.16 KiB) Viewed 2204 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.