Display separator in submenu

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
kiwichick
Posts: 673
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Display separator in submenu

Post by kiwichick »

In a multi-script, a hyphen can be used on a line of its own to display a separator.

For example:

Code: Select all

"Go to C:\"
 goto "C:\";
-
"Go to Windows system folder"
 goto "%winsysdir%";
-
"Open calculator"
 run "calc.exe";
2026-04-01_191618.png
Is there a way to display a separator in the submenu of a nested script?

For example:

Code: Select all

"Folders"
"Go to Windows system folder|||1"
 goto "%winsysdir%";
 // [separator here]
"Go to my folder|||1"
 goto "C:\Users\me";
"Go to Videos|||1"
 goto "C:\Users\me\Videos";
2026-04-01_191921.png
You do not have the required permissions to view the files attached to this post.
Windows 10 Pro 22H2

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Display separator in submenu

Post by jupe »

If you replace the commented line above, it would be like this:
"-|||1"

kiwichick
Posts: 673
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: Display separator in submenu

Post by kiwichick »

jupe wrote: 01 Apr 2026 17:59 If you replace the commented line above, it would be like this:
"-|||1"
Thanks 😊
Windows 10 Pro 22H2

kiwichick
Posts: 673
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: Display separator in submenu

Post by kiwichick »

jupe wrote: 01 Apr 2026 17:59 "|||1"
Can you please tell me where to go in the Help file where it mentions being able to use the ||1, ||2, etc for creating submenus? For the life of me I can't find it anywhere.
Windows 10 Pro 22H2

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Display separator in submenu

Post by jupe »

Advanced Topics > Scripting > Script Files for the Advanced > Levels

kiwichick
Posts: 673
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: Display separator in submenu

Post by kiwichick »

jupe wrote: 03 Apr 2026 05:46 Advanced Topics > Scripting > Script Files for the Advanced > Levels
Excellent! Thank you :)
Windows 10 Pro 22H2

Post Reply