[Deprecated] XY icon copy

Discuss and share scripts and script files...
Post Reply
highend
Posts: 14638
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

[Deprecated] XY icon copy

Post by highend »

Shows all available internal XY icons in a popup menu.

The idea is based on Enternals XYIconCopy version (viewtopic.php?f=7&t=9531)

Main difference, since v18.50.0301 XY supports the undocumented! [flags] parameter for the toolbar() script
command, which dynamically returns all icons instead of a list of fixed ones... This script incorporates the
new way to get them all...

The icons are filtered automatically, but by changing the variable

Code: Select all

$filterIcons = true;
to false you can change that behavior.

If filtering is active, all custom toolbar buttons from 2 to 64 and a lot of drive icons are removed
because they all provide an already existing icon...

A header that shows the count of icons found is by default displayed on top of the menu.
If you want to hide it, change the

Code: Select all

$displayHeader = true;
variable to false.
Clicking on the header entry will do (apart from closing the menu) nothing!

With the header:
with header.png
with header.png (8.02 KiB) Viewed 8591 times
Without:
without header.png
without header.png (6.95 KiB) Viewed 8591 times
v19.00.0302 adds a new flag to inputselect(): 1024
It is now much easier to scroll through the list of icons
(and filter it if you like)
19.00.0302.png
19.00.0302.png (16.85 KiB) Viewed 8153 times
Current version:
XY icon copy_v0.7.xys
(6.94 KiB) Downloaded 273 times
Old version(s):
XY icon copy_v0.6.xys
(7.07 KiB) Downloaded 421 times
XY icon copy_v0.5.xys
(6.03 KiB) Downloaded 414 times
XY icon copy_v0.4.xys
(5.8 KiB) Downloaded 381 times
XY icon copy_v0.3.zip
(2.23 KiB) Downloaded 418 times
XY icon copy_v0.2.zip
(2.02 KiB) Downloaded 373 times
XY icon copy_v0.1.zip
(1.87 KiB) Downloaded 382 times
One of my scripts helped you out? Please donate via Paypal

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

Re: XY icon copy

Post by highend »

Changelog

Code: Select all

v0.2
 • Fixed  : Replaced gvf -> gvfoff and visualfilter -> vfoff menu entries
            These are from type on/off
One of my scripts helped you out? Please donate via Paypal

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

Re: XY icon copy

Post by highend »

Changelog

Code: Select all

v0.3
 • Added: $displayHeader configuration option
          If set to true (default) the menu will show a header with how many
          icons were found. If set to false, the header will be hidden
One of my scripts helped you out? Please donate via Paypal

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

Re: XY icon copy

Post by highend »

Code: Select all

v0.4
 + Added: Support for v19.00.0302: inputselect() - flag = 1024 (show icons)
          Much easier to scroll through the list and filter it, now...
19.00.0302.png
19.00.0302.png (16.85 KiB) Viewed 8152 times
One of my scripts helped you out? Please donate via Paypal

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

Re: XY icon copy

Post by highend »

Code: Select all

v0.5
 + Added: Icons for dph, maxitree, queuepaused and script
One of my scripts helped you out? Please donate via Paypal

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

Re: XY icon copy

Post by highend »

Code: Select all

v0.6
 + Added: All currently known (and previously) missing internal icons
It now supports a sporting 171 internal icons on the current version...
One of my scripts helped you out? Please donate via Paypal

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

Re: XY icon copy

Post by klownboy »

Hi and thanks highend for keeping this icon listing up-to-date. For the heck of it, I made a minor change at the end such that it would run the button (if it's run-able) when you double click the item or hit OK, If you hold down control or shift when pressing OK it copies the icon text...just to give it a bit more functionality...I must be bored! :)

Code: Select all

        $selection = inputselect(gettoken($icons, "count", <crlf>) . " icon(s) found...<crlf>- Press OK to run toolbar button<crlf>- Hold contol down to copy icon text to clipboard", $icons, <crlf>, 1+32+64+1024+4096+8192, , 320, 760);
			$mod = get("shift");
			if (!$selection) { status "No icon entry selected, aborted!", "8B4513", "stop"; end true; }
			elseif($mod >= '1') {
				copytext ":$selection";
				status "Copied to clipboard: :$selection";}
			else {
				button "$selection";}
	}

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

Re: XY icon copy

Post by MBaas »

"ladybug" is missing from the list!
_________________________________________________
Happy user with Screen scaling 100% and W11Pro 24H2 ;-)

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

Re: XY icon copy

Post by klownboy »

Until highend updates the script, you could add "ladybug" as shown below in the $addNewIcons heredoc:

Code: Select all

        $addNewIcons = <<<>>>
clipcopy|clipcut|clipimage|cliptext|dph|findlabeldark|labelsdark|ladybug|tabsets|
vfoff|vfon
>>>;

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

Re: XY icon copy

Post by MBaas »

excellent, thanks! :tup:
_________________________________________________
Happy user with Screen scaling 100% and W11Pro 24H2 ;-)

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

Re: XY icon copy

Post by highend »

Added v0.7 with that icon...
One of my scripts helped you out? Please donate via Paypal

WirlyWirly
Posts: 304
Joined: 21 Oct 2020 23:33
Location: XY 64-Bit | Win 10 @ 100% (3440x1440)

Re: XY icon copy

Post by WirlyWirly »

Heads up, seems in need of an update. Quite a few of the icons aren't being displayed at all anymore.

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

Re: XY icon copy

Post by highend »

Let's call it deprecated...

There are 209 icons in the XY resource (only for the right part of the "map") and a couple more in the other parts.
The toolbar alone covers only 133 of these.

Where the rest is used, how they are called internally, ...

Sorry, it's not really manageable anymore without a way to get all icons with their internal names programmatically
One of my scripts helped you out? Please donate via Paypal

Post Reply