Based on viewtopic.php?t=27931
I wish the context menu could behave same as normal menu items with automatic expansion of submenu.
Thank you!
hover to open "New" and "New Item" in context menu
Re: hover to open "New" and "New Item" in context menu
Since original topic is connected to menu scripted via popupmenu(), maybe popupnested() command can be used for desired results.
Win 7 SP1 x64 100% 1366x768|1900x1080
Re: hover to open "New" and "New Item" in context menu
I have found a workaround.
Just use the script function "new" and its source file option.
Just use the script function "new" and its source file option.
Re: hover to open "New" and "New Item" in context menu
Code: Select all
$menu = <<<MENU
-
#230
::New Folder|/"<xypath>\Data\Icons\XYicon_FolderGeneric.ico"|new(,,"<xypath>\Data\NewItems\New",ru);
::New Text File|/"%windir%\System32\notepad.exe"|new(,,"<xypath>\Data\NewItems\New.txt",ru);
::New Word Document|/"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Word.lnk"|new(,,"<xypath>\Data\NewItems\New Word Document.docx",ru);
::New Excel Worksheet|/"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Excel.lnk"|new(,,"<xypath>\Data\NewItems\New Excel Worksheet.xlsx",ru);
-
MENU;
popupnested($menu, 7:="|");
"7:="|"" means I am using "|" to separate sections in each line, the default is ";", I need to use ";" to separate multiple script command, which is irrelevant to this particular section so you can change it back if you want.
"ru" means going straight into edit file name mode and enable to ability to "ctrl+z" the new item action.
You need to have New.txt, New Word Document.docx, New Excel Worksheet.xlsx in <xypath>\Data\NewItems folder.
Re: hover to open "New" and "New Item" in context menu
Got it, thank you.
XYplorer Beta Club