XY icon copy

Discuss and share scripts and script files...
Post Reply
highend
Posts: 13274
Joined: 06 Feb 2011 00:33

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 4402 times
Without:
without header.png
without header.png (6.95 KiB) Viewed 4402 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 3964 times
Current version:
XY icon copy_v0.7.xys
(6.94 KiB) Downloaded 39 times
Old version(s):
XY icon copy_v0.6.xys
(7.07 KiB) Downloaded 214 times
XY icon copy_v0.5.xys
(6.03 KiB) Downloaded 223 times
XY icon copy_v0.4.xys
(5.8 KiB) Downloaded 199 times
XY icon copy_v0.3.zip
(2.23 KiB) Downloaded 228 times
XY icon copy_v0.2.zip
(2.02 KiB) Downloaded 180 times
XY icon copy_v0.1.zip
(1.87 KiB) Downloaded 197 times
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

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: 13274
Joined: 06 Feb 2011 00:33

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: 13274
Joined: 06 Feb 2011 00:33

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 3963 times
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

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: 13274
Joined: 06 Feb 2011 00:33

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: 4109
Joined: 28 Feb 2012 19:27

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";}
	}
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: XY icon copy

Post by MBaas »

"ladybug" is missing from the list!
______________________________________________
Happy user ;-)

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

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
>>>;
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: XY icon copy

Post by MBaas »

excellent, thanks! :tup:
______________________________________________
Happy user ;-)

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: XY icon copy

Post by highend »

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

Post Reply