Инструменты пользователя

Инструменты сайта


en:autorun:documentation:tweaks_csma_showpopupmenu

ShowPopupMenu

ShowPopupMenu [/I:nn] [/A:nn] [/F] [/D] <menu>

The command loads the menu in *.mnu format or toolbar in *.bar format and displays it at the position of the mouse cursor.

Parameters

menuPath to menu file or toolbar file.

Switches

/I:nnOverrides the display and size of the icons for a given menu. If there is no switch, the settings for displaying icons are the same as in the Total Commander menu (controlled by the IconsInMenus key).

The number nn sets the size of the icon. If 0, the icons are disabled.
/A:nnMenu alignment. Specifies the position of the menu relative to the cursor. Represents the sum of the values. Only one value from each group can be included in the sum. The default value is 0, the alignment is in the upper left corner.

Horizontal alignment:
1 - center
2 - right border

Vertical alignment:
4 - center
8 - bottom border

The following values ​​only work for function keys, and the options above are ignored:

Vertical alignment:
16 - top border of buttons
32 - bottom border of buttons

Horizontal alignment:
64 - the left border of the buttons.
/FThe <menu> parameter is the name of a function that returns text in menu format. If there is no switch then <menu> parameter — the name of the menu or toolbar file.
/DEnables dynamic menu mode (disables caching). In this mode, the menu is recreated each time it is called up.

Remarks

Supported files in the following encodings: ANSI, UTF-16LE, UTF-16BE, UTF-8, UTF-8+BOM.

The following menu display options are not supported: button border and item status display.

*.bar file support has several limitations:

  • Executable files that set directly (without using the em_* command mechanism) cannot contain Total Commander variables (%P, %L and others) in the parameters.
  • Privilege escalation with using «*» before the command will not work.
  • Nested *.bar files are always displayed as a submenu.
  • The nesting depth of *.bar files is limited to 8 levels to exclude the possibility of infinite recursion.
en/autorun/documentation/tweaks_csma_showpopupmenu.txt · Последнее изменение: 2022/09/26 15:02 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki