Simple help with context menu
Posted: 08 Apr 2022 09:21
This is a script to create custom "right-click on white in file list" menu.
When I select "New Folder", XY doesn't create it for me. The same for other menu items, they doesn't really work.
As I understand, it seems there might be necessary to use
When I select "New Folder", XY doesn't create it for me. The same for other menu items, they doesn't really work.
Code: Select all
"Right-Click on White in File List"
$menu = <<<MENU
New Folder;#231
New Text File;#234
-
Paste;#202
-
Refresh;#1001
MENU;
popupmenu($menu);
eval() instead of popupmenu($menu), but it still doesn't work:Code: Select all
"Right-Click on White in File List"
$menu = <<<MENU
New Folder;#231
New Text File;#234
-
Paste;#202
-
Refresh;#1001
MENU;
$selected = popupmenu($menu);
if (strpos($selected, "#") != -1) { eval("""$selected"""); }
else { eval($selected); }