This is what I've tried, with a hundred variations in brackets, spacing, punctuation marks, etc!
Script Folder;#340{goto "<xyscripts>"};*.<DIR>Any help would be appreciated, thank you.
Script Folder;#340{goto "<xyscripts>"};*.<DIR>tab() command instead?tab() function! Script Folder;tab("new", "<xyscripts>");*.<DIR>load the result as a script resource type. As always the help file knows how^^Code: Select all
$menu = <<<MENU
Top;;:paper;1
Sub;;;4
Sub
Sub2;;*.ini
Sub2
Sub2;;;2
Top;;<xy>
MENU;
text popupnested($menu);| , ; placing inside different brackets, adding/removing a space in various places I just don't see where I need to look to find what I need in the manual. It's so vast and I'm looking for a needle! tab("new", "<xyscripts>") or this: #340, #757?sep_itemlist. But searching for this in the manual returns nothing and it doesn't appear in the Index. So what is it? What does tthis mean? I tried using that character "|" many times before opening this topic, as it didn't help. So I don't understand what you're trying to tell me. Like in the last paragraph, do I use the pipe character as a separator in the tab() script or in the CID script? or can I use either?I use the nested menu via a toolbar button, it calls a script saved in the Script Folder. Is that what you're referring to?And if this is about popupmenu / popupnested you have to load the result as a script resource type.
XY Script Folder|#340; #757;|*.<DIR>Code: Select all
MENU;
$sel = popupnested($menu, 7:="|");
if ($sel) { load $sel, , "s"; }
Code: Select all
MENU;
popupnested($menu);(Caption;Data;Icon;State)(Caption|Data;Data;Icon;State). Data is where the Command normally goes to perform an action. So why is the "New Tab" command appearing in the Caption part of the syntax? I just don't see the logic behind that?! In my mind it should be (Caption;Data|Data;Icon;State). So that the Caption is shown, after which the two data functions are performed in serial upon actioning a mouse click.popupmenu() command (e.g. 7:="<:>")Code: Select all
Show quicksearch result<:>text quicksearch("/f", "<curpath>", "|");<:>*.<DIR>
Code: Select all
$menu = <<<>>>
A single command id, automatically executed when selected|#340;|*.<DIR>
Multiple command ids, must be interpreted as a script|#340; #757;|*.<DIR>
Single script command, must be interpreted as a script|tab("new", "<xyscripts>");|*.<DIR>
Multiple script commands, must be interpreted as a script|$path = "<xyscripts>"; tab("new", $path);|*.<DIR>
>>>;
$sel = popupmenu($menu, 6:=<crlf>, 7:="|");
if ($sel) {
// Only load $sel if it isn't a single command id!
if (!regexmatches($sel, "^#\d+?;?$")) {
load $sel, , "s";
}
}