ekisu / mpv-webm

Simple WebM maker for mpv, with no external dependencies.
MIT License
576 stars 33 forks source link

Stupid question about key remapping #147

Open nobef opened 2 years ago

nobef commented 2 years ago

Everything works fine for me, but I would like to reassign the key from "c", for example, to "k", since there is another script for that key. I'm a noob and couldn't do it myself. Thank you!

mikamidd commented 2 years ago

Open the script with a text editor, go to line 8 and you should see this: keybind = "W" Change W to any keybind you want. Capitalization matters so "k" and "K" is not the same. If you input "K" you'll have to use shift+k in mpv to access the script menu, with a small "k" no shift is needed and you can just press k to access the script.

nobef commented 2 years ago

@mikamidd I did not mean W, but I wanted to reassign "c" to "k"

mikamidd commented 2 years ago

Oh, you mean the crop function? I believe it's this, line 2814: ["c"] = (function() Change "c" to the hotkey you want. Note that this won't change the hotkey that's displayed in the script menu, so for consistency you'll have to change line 2734: ass:append(tostring(bold('c:')) .. " crop\\N") Change the 'c:' here to whatever hotkey you assigned your crop function to.

nobef commented 2 years ago

@mikamidd Thank you! Works. изображение

nobef commented 1 year ago

@mikamidd Forgive me for writing here, but I forgot how the script is activated initially, I barely remembered (Shift + W). I would like to indicate this in the description in the topic! And so this is the best script, thanks!

nobef commented 10 months ago

@mikamidd Hello! I wanted to update the script, and the same question friend.... If possible, I would like it in the .conf file. Thank you!