Popup Menu Items
Popup Menu Items
I'm in need of a script that is a pop-up menu, which I can add items/scripts to the pop-up menu, rearrange menu items, remove menu items, add separators, a custom context menu would be more helpful, then having to go to a menu item.
Re: Popup Menu Items
Paste the following into the XY address bar for more information on how:
As for a custom context menu, you can pretty easily change what pops up when you right click on the whitespace background in the list or tree, instructions here: viewtopic.php?f=3&t=18674#p157646
if you follow the above link, and want instructions on how to tweak:
https://www.xyplorer.com/faq-topic.php?id=tweak
If you are building a menu that contains a lot of internal XY commands, this script might be helpful to you to generate menus that you can use as a base to build on: viewtopic.php?f=7&t=18585
Code: Select all
::help "idh_scripting.htm#idh_scripting_multi";
if you follow the above link, and want instructions on how to tweak:
https://www.xyplorer.com/faq-topic.php?id=tweak
If you are building a menu that contains a lot of internal XY commands, this script might be helpful to you to generate menus that you can use as a base to build on: viewtopic.php?f=7&t=18585
Re: Popup Menu Items
leomain, i've made the following changes to get the 2 desired context menus:
in the xyplorer.ini file:
CEA_TreeRightClickOnWhite=6
CEA_TreeRightClickOnWhite_Script=#1410
CEA_ListRightClickOnWhite=6
CEA_ListRightClickOnWhite_Script=#1409
most likely you will have slightly different values instead of 1410 and 1409
#1410 contains this:
#1409 contains this:
does anybody know if there is a way to change this line?:
"Menu - File" popupmainmenu 'file', 710, 718
so that it didn't require a click and was displaying the content when hovering it (it's called a nested menu, if i'm not mistaken)
in the xyplorer.ini file:
CEA_TreeRightClickOnWhite=6
CEA_TreeRightClickOnWhite_Script=#1410
CEA_ListRightClickOnWhite=6
CEA_ListRightClickOnWhite_Script=#1409
most likely you will have slightly different values instead of 1410 and 1409
#1410 contains this:
Code: Select all
"(Images)" goto "C:\(Images)\"
"(Programs)" goto "C:\(Programs)\"
"C:\Program Files" goto "C:\Program Files\"
"C:\Windows\Temp" goto "C:\WINDOWS\Temp\"
"Sibling First (Ctrl+Alt+Up)" #1418
"Sibling Last (Ctrl+Alt+Down)" #1417
"Menu - File" popupmainmenu 'file', 710, 718
"Menu - Edit" popupmainmenu 'edit', 710, 718
"Menu - View" popupmainmenu 'view', 710, 718
"Menu - Go" popupmainmenu 'go', 710, 718
"Menu - Favourites" popupmainmenu 'favorites', 710, 718
"Menu - User" popupmainmenu 'user', 710, 718
"Menu - Scripting" popupmainmenu 'scripting', 710, 718
"Menu - Tools" popupmainmenu 'tools', 710, 718
"Menu - Panes" popupmainmenu 'panes', 710, 718
"Menu - Window" popupmainmenu 'window', 710, 718
"Menu - Help" popupmainmenu 'help', 710, 718
"Save Settings" #182
Code: Select all
"flac, cue" selfilter "*.flac;*.cue"
"flac, txt" selfilter "*.flac;*.txt"
"flac, cue, txt" selfilter "*.flac;*.cue;*.txt"
"cue, txt" selfilter "*.cue;*.txt"
"wav" selfilter "*.wav"
"Copy Name" #102
"Copy Path" #103
"Copy Content Of Text-File" #117
"Sort By Name (Ctrl+N)" #321
"Sort By Extension" #322
"Sort By Size" #323
"Sort By Created" #325
"Sort By Modified (Ctrl+M)" #326
"Keep Larger 1 MB" filter "size: > 1 000 000"
"Keep Larger 10 MB" filter "size: > 10 000 000"
"Keep Larger 100 MB" filter "size: > 100 000 000"
"Keep Larger 1000 MB" filter "size: > 1 000 000 000"
"Keep Modified In Last 30 Minutes" filter "ageM: <= 30 n"
"Keep Modified In Last 90 Minutes" filter "ageM: <= 90 n"
"Keep Modified In Last 4 Hours" filter "ageM: <= 4 h"
"Keep Modified In Last 24 Hours" filter "ageM: <= 24 h"
"View - List" #304
"View - Pictures" #307
"Pre-View-Pane" #674
"Manage Favourite Folders" #612
"Toggle Favourite Folder" #566
"New Folders" #243
"Swap Names" #175
"Toggle Hidden Items" #493
"Menu - File" popupmainmenu 'file', 710, 718
so that it didn't require a click and was displaying the content when hovering it (it's called a nested menu, if i'm not mistaken)
Re: Popup Menu Items
load a script file from it which recreates the full file menu using popupnested()"Menu - File" popupmainmenu 'file', 710, 718
and yes, the functionality of some of the sub items would need to be scripted (because they don't have a simple command id)
e.g. some "Move/Copy/Backup to" ones
One of my scripts helped you out? Please donate via Paypal