Hamburger - the new tool

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Irwin of Upton
Posts: 131
Joined: 28 Feb 2015 19:42

Hamburger - the new tool

Post by Irwin of Upton »

As this has just been rolled out have not had time to learn all the syntax details yet.

With that admission could someone show how to add an icon to this #102 from Customize Menu:

Code: Select all

-
:newfolder
#102
:copypath
-

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

Re: Hamburger - the new tool

Post by admin »

Which icon do you want?

Irwin of Upton
Posts: 131
Joined: 28 Feb 2015 19:42

Re: Hamburger - the new tool

Post by Irwin of Upton »

Oh boy, complicated already. How about this one:

C:\Users\Owner\AppData\Roaming\XYplorer\Icons\Hello.ico

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

Re: Hamburger - the new tool

Post by admin »

Code: Select all

#102;;Hello.ico

Irwin of Upton
Posts: 131
Joined: 28 Feb 2015 19:42

Re: Hamburger - the new tool

Post by Irwin of Upton »

Thank you for the assistance. Not as bad as had been feared. At this rate the hamburger will soon become
a Big Mac! :appl:

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

Re: Hamburger - the new tool

Post by highend »

The changelog states that the syntax is from popupmenu (v18.00.0007 - 2017-06-15 12:23)

but popupmenu() uses
Caption;Data;Icon;State?
One of my scripts helped you out? Please donate via Paypal

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

Re: Hamburger - the new tool

Post by admin »

Yes. That's what I did: #102;;Hello.ico (Data and State are omitted).

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

Re: Hamburger - the new tool

Post by highend »

But e.g. in popupnested (same syntax as in popupmenu)you can do it like this
(again: caption;data;icon;state, state is omitted here):

Code: Select all

Name(s), Bytes, Modified;#104;:favs
So how do you use a caption, the command and an icon inside the hamburger menu
for a single entry?
One of my scripts helped you out? Please donate via Paypal

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

Re: Hamburger - the new tool

Post by admin »

You mean you want to define a custom caption for a command:

Code: Select all

My Caption;#102;Hello.ico
?

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

Re: Hamburger - the new tool

Post by highend »

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

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

Re: Hamburger - the new tool

Post by admin »

OK, when I saw "#102" gives "Item Name(s)" I saw the need for this. "Item Name(s)" is meaningless without its parent menu "To Clipboard".

I'll try to add that. I guess any original KS should stay in place in the menu item caption, since however you call it, the KS will call the function behind it (#102).

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

Re: Hamburger - the new tool

Post by highend »

New beta works fine this, thanks!
One of my scripts helped you out? Please donate via Paypal

Irwin of Upton
Posts: 131
Joined: 28 Feb 2015 19:42

Re: Hamburger - the new tool

Post by Irwin of Upton »

Bravo! Now the Hamburger come with Fries. :D
+ SC popupmenu/popupnested enhanced: Now you can define custom captions for
menu commands defined as XYplorer Menu Commands or Toolbar Buttons. Simply
put the definition in the "data" part of the item definition
(Caption;Data;Icon;State).

yusef88
Posts: 1126
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: Hamburger - the new tool

Post by yusef88 »

after adding caption and icon the command doesn't work

Code: Select all

Delete Current Folder;::delete 1, 1, <curpath>;:del
before is working

Code: Select all

::delete 1, 1, <curpath>

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

Re: Hamburger - the new tool

Post by admin »

The new option is only for menu commands defined as XYplorer Menu Commands or Toolbar Buttons.

Script captions in menus can be set like this:

Code: Select all

::Caption;Script
Example:

Code: Select all

popupmenu("::Hi;echo 'hi'|::Ho;echo 'ho'");

Post Reply