Page 1 of 1
Allow grouping User Command Scripts into submenus
Posted: 13 Apr 2023 23:32
by woofy31
I currently have 70 user command scripts defined for all sorts of daily tasks, and it has become a nightmare to scroll through such a long "Run Script" menu (it doesn't even scroll for I have to click the top/bottom arrows to scroll through the list)
Just like there is an option to insert a menu separator, there should also be an option to create a submenu to group specific user command scripts into a submenu, thus (1) allowing easier finding of scripts, (2) removing the need to scroll through endless menus and (3) removing the need to assign shortcuts just to avoid scrolling through long script menus.
Re: Allow grouping User Scripts into submenus
Posted: 14 Apr 2023 07:23
by RalphM
You might want to look into the catalog where you can group your scripts in categories (only 1 level though).
Another thing to look at is CFA's, especially interesting if your scripts only make sense for some specific file types, see screenshot below:

- PicPick_824.jpg (11.42 KiB) Viewed 1789 times
Re: Allow grouping User Scripts into submenus
Posted: 14 Apr 2023 11:06
by woofy31
RalphM wrote: ↑14 Apr 2023 07:23
You might want to look into the catalog where you can group your scripts in categories (only 1 level though).
Another thing to look at is CFA's, especially interesting if your scripts only make sense for some specific file types, see screenshot below:
PicPick_824.jpg
Awesome creative solutions - pity my catalog is already full of things
(although I could create a separate catalog for scripts, but I don't think there is a quick hotkey-way of switching catalogs without clicking context menus), and I don't have many filetype-specific scripts.
I do recall that XYplorer has implemented a custom popup menu/nested popup feature, so I have to look into that and see how I could use it to create a custom popup with submenus listing all my scripts in categories.
Thank you Ralph!
Re: Allow grouping User Scripts into submenus
Posted: 14 Apr 2023 11:21
by highend
but I don't think there is a quick hotkey-way of switching catalogs without clicking context menus
catalogload()
bound to user defined commands with a hotkey...
Re: Allow grouping User Scripts into submenus
Posted: 14 Apr 2023 11:25
by woofy31
highend wrote: ↑14 Apr 2023 11:21
but I don't think there is a quick hotkey-way of switching catalogs without clicking context menus
catalogload()
bound to user defined commands with a hotkey...
Awesomeness! Thank you!!
Re: Allow grouping User Scripts into submenus
Posted: 14 Apr 2023 12:41
by Norn
?

- Queue menus.png (4.65 KiB) Viewed 1768 times
Re: Allow grouping User Scripts into submenus
Posted: 14 Apr 2023 12:52
by woofy31
Norn wrote: ↑14 Apr 2023 12:41
?
Queue menus.png
?
How did you create those menus/submenus? Is it via the custom popup feature?
Re: Allow grouping User Scripts into submenus
Posted: 14 Apr 2023 13:07
by sl23
Here's my current menu for folders and some apps, if any use to you...
Code: Select all
$menu = <<<MENU
-
-
System|;;|<xyicons>\book.png
This PC|#340; goto "%computer%";|%computer%
Documents|#340; goto "%personalreal%";|%personalreal%
- App Data|#340; goto "%USERPROFILE%\AppData\";|*.<DIR>
- Program Data|#340; goto "%ProgramData%";|*.<DIR>
- Program Files 32|#340; goto "%ProgramFiles(x86)%";|*.<DIR>
- Program Files 64|#340; goto "%ProgramW6432%";|*.<DIR>
- StartUp|#340; goto "%ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp\";|*.<DIR>
- Windows|#340; goto "%windir%";|*.<DIR>
-
- Quick Launch|#340; goto "%USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch";|*.<DIR>
- Start Menu All|#340; goto "C:\ProgramData\Microsoft\Windows\Start Menu";|*.<DIR>
- Start Menu User|#340; goto "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu";|*.<DIR>
- Temp|#340; goto "%windir%\Temp";|*.<DIR>
-
System Apps|;;|<xyicons>\book.png
Calc|; open "%windir%\System32\calc.exe";|%windir%\System32\calc.exe
Cmd|; open "%ComSpec%";|%ComSpec%
Control Panel|; open "%windir%\System32\control.exe";|%windir%\System32\control.exe
Recycle Bin|#340; goto "Recycle Bin";|Recycle Bin
Reg Edit|; open "%windir%\SysWOW64\regedit.exe";|%windir%\SysWOW64\regedit.exe
Settings|; open "D:\SyMenu\Profiles\MyQuickLaunch\- Settings.lnk";|D:\SyMenu\Profiles\MyQuickLaunch\- Settings.lnk
Sound Settings|; open "%windir%\System32\mmsys.cpl";|%windir%\System32\mmsys.cpl
System Info|; open "%windir%\System32\msinfo32.exe";|%windir%\System32\msinfo32.exe
Win Explorer|; open "%windir%\explorer.exe";|%windir%\explorer.exe
-
Internal Icons|; load "XY icon copy.xys";|:clipimage
MENU;
$sel = popupnested($menu, 7:="|");
if ($sel) { load $sel, , "s"; }
Separators are made with
-
Indents make a new category.
Re: Allow grouping User Scripts into submenus
Posted: 14 Apr 2023 13:34
by Norn
woofy31 wrote: ↑14 Apr 2023 12:52
Norn wrote: ↑14 Apr 2023 12:41
?
Queue menus.png
?
How did you create those menus/submenus? Is it via the custom popup feature?
Custom queue menus via AutoHotkey scripts, but you don't need to learn AutoHotkey because I imitated XY's custom menu.
User can create Folder/category for user-command
Posted: 28 Apr 2023 21:16
by xen
hi,
i have many user commands and i think it should be more convenient if we can create folder or category to organize them
for example , in user-manage commands menu=> in "run scripts" category, i want to create a folder/category and drag my user-commands into it
Thanks
Re: Allow grouping User Scripts into submenus
Posted: 29 Apr 2023 02:53
by xen
Hi again, from what i understand from this thread, the post is about categorize the script file ,not user-defined command (please tell me if im wrong)
i want to categorize the user-defined command (not scripts file) in the popup (which open via user=>manage commands) , is there anyway to do that?
(i prefer using user-defined commands than using script files because running user-defined command will load script from memory instead of loading the script from disk)
any help would be much appreciated
Re: Allow grouping User Scripts into submenus
Posted: 29 Apr 2023 08:16
by Horst
xen wrote: ↑29 Apr 2023 02:53
...
(i prefer using user-defined commands than using script files because running user-defined command will load script from memory instead of loading the script from disk)
any help would be much appreciated
And what is the big difference or problem ?
Re: Allow grouping User Command Scripts into submenus
Posted: 29 Apr 2023 09:52
by xen
loading from memory faster than disk, also user-defined command has hotkey to trigger