Load Multi-line scripts at control instead of cursor?
Posted: 29 Oct 2020 23:26
Hello,
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
My User command for loading these multi-line scripts looks like this...
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
I looked through the docs but couldn't find a function to specify the location before loading a multi-line script. Nor does the load function seem to have an option. Any ideas what what code I have to add to these scripts in-order to change their pop-up location to my address bar?
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,,,,,|);