Ok, this is where I'm getting really lost! I don't get it at all. The reason is that there are so many different ways of writing scripts depending where and how they are used, but the manual doesn't say how examples are to be used.
What do I mean? Well, I'll try to explain, please bare with me...
So, I have a nested menu, laid out like this one from the manual:
Code: Select all
$menu = <<<MENU
Top;;:paper;1
Sub;;;4
Sub
Sub2;;*.ini
Sub2
Sub2;;;2
Top;;<xy>
MENU;
text popupnested($menu);
Where is the separator or multiple commands on a single line? All examples are like this, showing only the one command per action. ie, one command per mouse click. I can set a menu item to open a new tab OR I can set it to open the Script folder, but to do both? I really can't see the answer here.
In the first examples for popupmenu, it uses a "|" to mark the next option, but this isn't what you called "multiple script commands." It's dividing menu entries up into single commands. I have been through the manual several times looking at all popupmenu type scripting, and I don't see anywhere where it explains how to use more than one command in a single entry of the menu, such as the one I'm asking about. I have tried separating them with
| , ; 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!
I realise in your eyes this must seem really dumb, but when you don't know, you just don't know.
Also, does it matter how I 'phrase' the syntax? Sorry, I don't know the correct terminology to explain, so an example:
Putting aside the script is incorrect and not working does it make any difference if I use this:
tab("new", "<xyscripts>") or this:
#340, #757?
Anyway, I checked popupmenu(), again, and there's nothing in there that uses "multiple script commands," the only reference I can find is:
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 understand you are actually trying to help by giving me breadcrumbs rather than spoon feeding, it's just that I'm not a coder and I really am trying to understand and find a solution, but I just don't see what you're getting at. Could I have a little more of an idea how this works please? My main problem is that I don't know the syntax to start with, like which of the two examples I gave do I need to use. If I had the right starting point, that would be a help.
Also, I have no idea what you mean by this:
And if this is about popupmenu / popupnested you have to load the result as a script resource type.
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?
Sorry for the long post, I'm just trying to explain in detail, and I do apologise if I seem a bit I come across the wrong way, I have suffered with severe insomnia for 4 years now and it can make me a bit short tempered, mainly with myself, so please don't take it personally! I do appreciate you taking the time to help out.
