The OnEvent_MenuClicked event is fired when an item of a script menu is selected by the current user.
OnEvent_MenuClicked( [string] MenuItemId, [enum] Location, [object] OriginWnd );
[enum] A number specifying the location of the menu that triggered the event. You can use this parameter to display a different menu depending on what the current user is currently doing.
MENULOC_CONTACTLIST (1)
MENULOC_CHATWND (2)
MENULOC_MOBILEWND (3)Contact List
Messenger Chat Window
Mobile Device Chat Window
No value has to be returned by this event.
The script's menu can be defined statically in the ScriptInfo.xml file or returned by the OnGetScriptMenu event handler.
Messenger Plus! 4.23 and earlier: enumeration names are not available, numbers must be used instead.
Messenger Plus! 4.50 and earlier: MENULOC_MOBILEWND is not supported.
Event Source | Messenger Plus! |
---|---|
Availability | Messenger Plus! Live 4.00 |