FAQ - tsl0922/mpv-menu-plugin GitHub Wiki
Not working or no menu displayed
- this plugin is for Windows only
- check your mpv version,
0.37.0
or higher is required - check if the
cplugins
feature is enabled in you mpv- run
mpv --msg-level=all=v
, check if the[cplayer] Configuration:
line containscplugins
- run
- have you defined any menu items in
input.conf
? (#49). - have you bound
MBTN_RIGHT
to other command ininput.conf
? Remove it.
How to enable dark mode
Turn on Dark mode in Windows Settings, read Change colors in Windows.
How to disable the default right click keybinding
add MBTN_RIGHT ignore
in input.conf
, or change ignore
to whatever you want.
How to trigger menu from other script / keybinding
- lua script:
mp.commandv('script-binding', 'dyn_menu/show')
- keybinding: add
Shift+MBTN_RIGHT script-binding dyn_menu/show
toinput.conf
[!TIP] If you want to trigger menu with lua code, be aware that the menu won't display unless the mouse is in mpv window.
I don't want to trigger click event when closing menu by left click
see #23, or use the lua code below:
mp.register_script_message('menu-open', function()
mp.add_forced_key_binding('MBTN_LEFT', 'click_ignore')
end)
mp.register_script_message('menu-close', function()
local sec = mp.get_property_number("input-doubleclick-time", 300) / 1000
mp.add_timeout(sec, function()
mp.remove_key_binding('click_ignore')
end)
end)