Quick Custom Menu Builder
Posted: 14 Mar 2014 22:11
Hello again.
Want to build entire custom menus with your favorite commands from within XYplorer?
...ever wanted to have a task specific set of tools at hand?
...all of this easy to handle, quick to deal with, fully customizable (ie, XY standard)?
Now you can!, dear user.
1. Download the code, open with notepad (or your favorite one for plain text), run it on XY > Scripting > Run Script...;
2. Choose you commands (tip: use Live Filter - even successive selections after filtering will be preserved!), click 'ok', choose your
favorite output method (with or without categories);
3. Done - copy the generated code and run it from wherever you want.
Tip 2: UDC is the best place for this, ie, create a UDC entry that loads the generated code (provided you saved it into XYS extension),
set an easy shortcut for it and when you need to edit the menu, you just need to do it - UDC remains the same, idem for shortcut.
Another method is to create an UDC entry for the attached .xys and run the generated code, ie, the custom menu from a CKS'ed
'Run Script Again'. This manner you wouldn't even have to edit a file anywhere - just run your quickly created, task-specific menu.
NOTE 1: Don (program's author) asked for Popular Commands & Settings
so he can build XY own button for this. This script may ease the process of gathering such info - so feel free to send your picked commands to this thread.
May be useful to him, I believe.
NOTE 2: This also can be the answer for the More Customized Context Menu-Don't Expand Items
thread.
As usual, feedback is welcome. Suggestions, enhancements, complaints. A little 'thank you' wouldn't hurt, either.
Best regards,
SkyF.
________
Pending:
1. live feed from XY so accurate data is retrieved, regarding current settings vs tips for CKS (anyone knows a method for obtaining this, via script?).
2. popupmenu() doesn't support icons for the moment, as far as I can see. Will update if/when this happens - a basic code is already waiting for this.
________
Changes:
v1.6, *coolest* edition (cheers, autocart!):
-*new temperature, fella!*: created menu immediately loaded! ÕÔ
-cheat sheet updated (647 -> 652 items)
-added "Load Menus Collection" to "load z_SF_QuickCustomMenuBuilder", which pulls all menus created so far (no accelerators)
-width of pick-up menu increased to 1000 pixels
-minor revision on messages and script presentation.
v1.4b, *this is savage flexibility* edition:
-*new logic, babe!*: TEMP MENUS concept! \o/
-cheat sheet updated (620 -> 647 items as of 15.40.0100); now displaying assigned hotkeys (if 'WITH categories' is chosen)
-new label naming technique for storage at '<xyscripts>\z_SF_QuickCustomMenuBuilder.txt'
-focus on livefilter box
-auto-sizing of window height.
v1.2: as suggested by user aurumdigitus, it writes a consolidated collection of all generated menus in the '<xyscripts>\z_SF_QuickCustomMenuBuilder.txt' file. Those menus can later have their captions renamed, allowing you to have specialized menus for different tasks with proper descriptions.
v1.1: fixes an issue reported by user Tejas.
Previous builds, unavailable:
QuickCustomMenuBuilder_v1_1.xys
(31.46 KiB) Downloaded 43 times
QuickCustomMenuBuilder.xys
(31.33 KiB) Downloaded 26 times
Want to build entire custom menus with your favorite commands from within XYplorer?
...ever wanted to have a task specific set of tools at hand?
...all of this easy to handle, quick to deal with, fully customizable (ie, XY standard)?
Now you can!, dear user.
1. Download the code, open with notepad (or your favorite one for plain text), run it on XY > Scripting > Run Script...;
2. Choose you commands (tip: use Live Filter - even successive selections after filtering will be preserved!), click 'ok', choose your
favorite output method (with or without categories);
3. Done - copy the generated code and run it from wherever you want.
Tip 2: UDC is the best place for this, ie, create a UDC entry that loads the generated code (provided you saved it into XYS extension),
set an easy shortcut for it and when you need to edit the menu, you just need to do it - UDC remains the same, idem for shortcut.
Another method is to create an UDC entry for the attached .xys and run the generated code, ie, the custom menu from a CKS'ed
'Run Script Again'. This manner you wouldn't even have to edit a file anywhere - just run your quickly created, task-specific menu.
NOTE 1: Don (program's author) asked for Popular Commands & Settings
so he can build XY own button for this. This script may ease the process of gathering such info - so feel free to send your picked commands to this thread.
May be useful to him, I believe.
NOTE 2: This also can be the answer for the More Customized Context Menu-Don't Expand Items
thread.
As usual, feedback is welcome. Suggestions, enhancements, complaints. A little 'thank you' wouldn't hurt, either.
Best regards,
SkyF.
________
Pending:
1. live feed from XY so accurate data is retrieved, regarding current settings vs tips for CKS (anyone knows a method for obtaining this, via script?).
2. popupmenu() doesn't support icons for the moment, as far as I can see. Will update if/when this happens - a basic code is already waiting for this.
________
Changes:
v1.6, *coolest* edition (cheers, autocart!):
-*new temperature, fella!*: created menu immediately loaded! ÕÔ
-cheat sheet updated (647 -> 652 items)
-added "Load Menus Collection" to "load z_SF_QuickCustomMenuBuilder", which pulls all menus created so far (no accelerators)
-width of pick-up menu increased to 1000 pixels
-minor revision on messages and script presentation.
v1.4b, *this is savage flexibility* edition:
-*new logic, babe!*: TEMP MENUS concept! \o/
-cheat sheet updated (620 -> 647 items as of 15.40.0100); now displaying assigned hotkeys (if 'WITH categories' is chosen)
-new label naming technique for storage at '<xyscripts>\z_SF_QuickCustomMenuBuilder.txt'
-focus on livefilter box
-auto-sizing of window height.
v1.2: as suggested by user aurumdigitus, it writes a consolidated collection of all generated menus in the '<xyscripts>\z_SF_QuickCustomMenuBuilder.txt' file. Those menus can later have their captions renamed, allowing you to have specialized menus for different tasks with proper descriptions.
v1.1: fixes an issue reported by user Tejas.
Previous builds, unavailable:
QuickCustomMenuBuilder_v1_1.xys
(31.46 KiB) Downloaded 43 times
QuickCustomMenuBuilder.xys
(31.33 KiB) Downloaded 26 times