My suggestion is to add an extra parameter in scripts when creating a menu, so the syntax can look like this: menu[:number]

When we create new pop-up menus in the "Remote" tab, then there is no way to select a specific row location for the newly created item.

For example:
Code
menu channel {
  New item: Command
}

In this case, this "New item" will be installed last in the list in the pop-up menu, and only after all items that have been created in the "Popups -> View/Channel" tab.


When implementing my idea it will be possible to embed the line (or several lines at once) "New item" in to the specified place in the pop-up menu.

In this example, all new items should be inline at position "5" in the menu list:
Code
menu:5 channel {
  New item 1: Command
  New item 2: Command
}


    [Linked Image from i.ibb.co]


Note: This should not affect the backward compatibility of previously created scripts without this parameter. The new parameter should only serve to enhance writing scripting capabilities, as an add-on (at choice).




🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples