Have you taken a look at my Vertical Toolbar script here (vTB)? This thread was asking questions concerning loading a sub menu to support that script. But as I said previously, it doesn't make sense to have to click to a second menu when you can click on one menu instead - one menu for each different file type.CookieMonster wrote:Klownboy - Can this script do identical right click on white space with menu names and sub-menus ? I want to place all the tool bar items within a right click on white with sub-menus.
Using "Load" to bring up a sub menu
-
klownboy
- Posts: 4407
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440
Re: Using "Load" to bring up a sub menu
-
CookieMonster
Re: Using "Load" to bring up a sub menu
I didn't mean that; what I meant is sub-menus for the context menu one can nest a specific set of CTB commands in a sub-menu if warranted; otherwise they can leave it in the regular context menu ?But as I said previously, it doesn't make sense to have to click to a second menu when you can click on one menu instead - one menu for each different file type.
-
Stef123
Re: Using "Load" to bring up a sub menu
One possible approach: Create "menu-modules", such as the following "MonstrousCookie.xys"
Each caption contains an ampersand & - to assign a key shortcut to the following letter.
As you can see, there are calls to programs and scripts (1st group on top), folders and files (2nd group), and the bottom line opens the file MonstrousCookie.xys itself for editing.
To pop up the menu from above:
To pop up the built-in menu "Tools":
Code: Select all
"Date-&Reminder" <xypath>\..\DateReminder\Reminder.exe
"&CookieScript" #1987;
-
"Cookie&Jar" C:\Cookie\Jar
"Cookie&Song" C:\Musik\Cookie.mp3
-
"Edit this &menu|:udc" open self(file);
As you can see, there are calls to programs and scripts (1st group on top), folders and files (2nd group), and the bottom line opens the file MonstrousCookie.xys itself for editing.
To pop up the menu from above:
Code: Select all
"Submenu MonstrousCookie" ::load "<xyscripts>\MonstrousCookie.xys";
Code: Select all
"XY&Tools" popupmainmenu "Tools";
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Using "Load" to bring up a sub menu
Alternate method (no xys file req): http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=10362
BTW, I'm currently trying new approaches to get back to the originating menu. Help is appreciated.
BTW, I'm currently trying new approaches to get back to the originating menu. Help is appreciated.
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...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
CookieMonster
Re: Using "Load" to bring up a sub menu
Being able to see the keyboard short-cut for the item in the context menu is excellent, the rest I don't know what you mean ? I meant migrate the WhiteSpaceRightClick context menu with sub-menus and submenu item names ?Stef123 wrote:One possible approach: Create "menu-modules", such as the following "MonstrousCookie.xys"Each caption contains an ampersand & - to assign a key shortcut to the following letter.Code: Select all
"Date-&Reminder" <xypath>\..\DateReminder\Reminder.exe "&CookieScript" #1987; - "Cookie&Jar" C:\Cookie\Jar "Cookie&Song" C:\Musik\Cookie.mp3 - "Edit this &menu|:udc" open self(file);
As you can see, there are calls to programs and scripts (1st group on top), folders and files (2nd group), and the bottom line opens the file MonstrousCookie.xys itself for editing.
To pop up the menu from above:To pop up the built-in menu "Tools":Code: Select all
"Submenu MonstrousCookie" ::load "<xyscripts>\MonstrousCookie.xys";Code: Select all
"XY&Tools" popupmainmenu "Tools";
-
Stef123
Re: Using "Load" to bring up a sub menu
@SkyFrontier
thanks for the link. Your approach - and also what Ken (klownboy) came up with in terms of submenus - is a whole lot smarter and probably also faster. On slow USB-sticks and old USB hubs I noticed time lags when using my xys-submenus. I have not given this enough attention, but I realize that yours and Ken's approach with perm variables and all that is bound to be more effective and better-performing than my plain xys-calls that have to fetch xyx-files from slow USB-sticks.
In your response to Ken (3 postings above) you said "...what I meant is sub-menus for the context menu one can nest a specific set of CTB commands in a sub-menu". Your very own words. That's what my menu does, it nests your specific set of CTB-commands - no matter what the may be, a script, command, location, exe-call, open-with, anything. Not as good as Ken's approach with Heredoc and all the bells and whistles, but very quick and easy to set up (easy being my main reason for using it myself, no quotes, no if-while-for constructs)
thanks for the link. Your approach - and also what Ken (klownboy) came up with in terms of submenus - is a whole lot smarter and probably also faster. On slow USB-sticks and old USB hubs I noticed time lags when using my xys-submenus. I have not given this enough attention, but I realize that yours and Ken's approach with perm variables and all that is bound to be more effective and better-performing than my plain xys-calls that have to fetch xyx-files from slow USB-sticks.
Why is that? After all the time you invested to get it to work, you now want to ditch the WhiteSpaceRightClick?CookieMonster wrote: ... the rest I don't know what you mean ? I meant migrate the WhiteSpaceRightClick context menu with sub-menus and submenu item names ?
In your response to Ken (3 postings above) you said "...what I meant is sub-menus for the context menu one can nest a specific set of CTB commands in a sub-menu". Your very own words. That's what my menu does, it nests your specific set of CTB-commands - no matter what the may be, a script, command, location, exe-call, open-with, anything. Not as good as Ken's approach with Heredoc and all the bells and whistles, but very quick and easy to set up (easy being my main reason for using it myself, no quotes, no if-while-for constructs)
-
CookieMonster
Re: Using "Load" to bring up a sub menu
I don't see sub-menus in Kens screen shot, along with menu titles ?
-
klownboy
- Posts: 4407
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440
Re: Using "Load" to bring up a sub menu
Maybe I still don't get what you want, but you can do things like what I have posted here - Menus and subs. I'm not sure I'd want this built-in to the WhiteSpaceCtxMenu script. Though I could easily refer to it as a default menu that displays if nothing is selected. Before I came up with WhiteSpaceCtxMenu, I had it as the menu used for the right click on white space. Actually, I still do for right click in the tree. I don't think I'd want to write it into the WhiteSpaceCtxMenu, but only load it from that menu. I've been using something similar but expanded for a long time and have it set up as both a CTB and as a User Command as well.
-
CookieMonster
Re: Using "Load" to bring up a sub menu
This http://www.xyplorer.com/xyfc/viewtopic. ... =15#p93665 menu is exactly what I mean, except add menu titles & keyboard short-cuts to the items if warranted, otherwise leave empty. This menu would work when no item is selected, hence WhiteSpaceContextMenu and it would have all the CTB integrated, or what you want integratedklownboy wrote:Maybe I still don't get what you want, but you can do things like what I have posted here - Menus and subs. I'm not sure I'd want this built-in to the WhiteSpaceCtxMenu script. Though I could easily refer to it as a default menu that displays if nothing is selected. Before I came up with WhiteSpaceCtxMenu, I had it as the menu used for the right click on white space. Actually, I still do for right click in the tree. I don't think I'd want to write it into the WhiteSpaceCtxMenu, but only load it from that menu. I've been using something similar but expanded for a long time and have it set up as both a CTB and as a User Command as well.
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Using "Load" to bring up a sub menu
Cookie - I was reluctant in posting here but you may have missed it... have you seen this Method - XYscriptsGrouping thread?
Your discussion was the reason 2 why I made it.
Finishing some urgent stuff here I'll try to do the mark-separated feature for it. (Assuming it's not that hard...)
Your discussion was the reason 2 why I made it.
Finishing some urgent stuff here I'll try to do the mark-separated feature for it. (Assuming it's not that hard...)
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...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
CookieMonster
Re: Using "Load" to bring up a sub menu
I never saw that thread. It has to tie in with similarity to WhiteContextRightClick !
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Using "Load" to bring up a sub menu
By design it's meant to easily interface with anything XY-standard... Do some experimenting, tell me your discoveries and we'll see what comes. Current incarnation automatically (=blindly) distribute the scripts equally among groups, except for the last one (that holds remainders).
Now I'm working with a more user-controlled distribution - which may be key for your project.
Let's see.
Now I'm working with a more user-controlled distribution - which may be key for your project.
Let's see.
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...
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: Using "Load" to bring up a sub menu
Done.CookieMonster wrote:I never saw that thread. It has to tie in with similarity to WhiteContextRightClick !
v2 - user defined grouping/captions (split on predefined markers instead of dumb auto-groups.)
Code: Select all
*** How to Attribute Groups ***
-set a simple caption, no script attached to it, immediately _below_ the group of scripts
it will hold. This caption will name the respective group on the main menu.
-logically, the last group will need a caption - it'll be the last entry at the "$a" variable.
--if the last caption missing, the last entry on the main menu will still work, ie: will have
--an accelerator, have an empty name field plus respective items count.As said, let me know in the case of any special customization - and eventual bugs.
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...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
CookieMonster
Re: Using "Load" to bring up a sub menu
I placed the script in the scripts folder for XY, how do I initiate / use ? 
XYplorer Beta Club