Allow grouping User Command Scripts into submenus

Features wanted...
Post Reply
woofy31
Posts: 39
Joined: 24 Dec 2020 23:02

Allow grouping User Command Scripts into submenus

Post 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.
Last edited by woofy31 on 29 Apr 2023 02:58, edited 1 time in total.

RalphM
Posts: 2029
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Allow grouping User Scripts into submenus

Post 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
PicPick_824.jpg (11.42 KiB) Viewed 1791 times
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

woofy31
Posts: 39
Joined: 24 Dec 2020 23:02

Re: Allow grouping User Scripts into submenus

Post 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!

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

Re: Allow grouping User Scripts into submenus

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

woofy31
Posts: 39
Joined: 24 Dec 2020 23:02

Re: Allow grouping User Scripts into submenus

Post 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!!

Norn
Posts: 480
Joined: 24 Oct 2021 16:10

Re: Allow grouping User Scripts into submenus

Post by Norn »

?
Queue menus.png
Queue menus.png (4.65 KiB) Viewed 1770 times
Windows 11 24H2 @100% 2560x1440

woofy31
Posts: 39
Joined: 24 Dec 2020 23:02

Re: Allow grouping User Scripts into submenus

Post 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?

sl23
Posts: 259
Joined: 03 Feb 2015 23:34
Location: Win11x64 24H2 1920x1080

Re: Allow grouping User Scripts into submenus

Post 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.

Norn
Posts: 480
Joined: 24 Oct 2021 16:10

Re: Allow grouping User Scripts into submenus

Post 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.
Windows 11 24H2 @100% 2560x1440

xen
Posts: 52
Joined: 27 Mar 2013 03:57

User can create Folder/category for user-command

Post 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

xen
Posts: 52
Joined: 27 Mar 2013 03:57

Re: Allow grouping User Scripts into submenus

Post 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

Online
Horst
Posts: 1312
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Allow grouping User Scripts into submenus

Post 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 ?
Windows 11 Home, Version 24H2 (OS Build 26100.6584)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1399a (x64), Everything Toolbar 2.0.4, Listary Pro 6.3.5.94

xen
Posts: 52
Joined: 27 Mar 2013 03:57

Re: Allow grouping User Command Scripts into submenus

Post by xen »

loading from memory faster than disk, also user-defined command has hotkey to trigger

Post Reply