I have a few multi-line scripts that I use (XYCollector, PreviewFolder, etc...) and am trying to make them popup at the address bar control instead of the cursor.
In my xyplorer.ini file, I've tweaked
PopupMenusAtSelection=1
, however that only seems to affect built-in menus, not loading scripts with a hotkey.My User command for loading these multi-line scripts looks like this...
::load "<xyscripts>\XYCollector.xys";
In one of my personal scripts, I'm able to make the menu pop-up at a specific location, because the function supports an X/Y position, however the
::load
does not...
Code: Select all
// Get X/Y position of a control
$position = controlposition('A', 0);
$x_pos = gettoken($position, 1, '|');
$y_pos = gettoken($position, 2, '|');
// Display the context menu
$command = popupnested($menu, $x_pos, $y_pos,,,,,|);