-
-
Notifications
You must be signed in to change notification settings - Fork 8
Shuanglei Tao edited this page Feb 26, 2024
·
7 revisions
- this plugin is for Windows only
- check your mpv version,
0.37.0or higher is required - check if the
cpluginsfeature 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_RIGHTto other command ininput.conf? Remove it.
Turn on Dark mode in Windows Settings, read Change colors in Windows.
add MBTN_RIGHT ignore in input.conf, or change ignore to whatever you want.
- lua script:
mp.commandv('script-binding', 'dyn_menu/show') - keybinding: add
Shift+MBTN_RIGHT script-binding dyn_menu/showtoinput.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.
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)