diff options
author | Dudemanguy <random342@airmail.cc> | 2021-04-29 15:56:11 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-04-29 15:56:11 -0500 |
commit | 7df9ebda6c9828b75b814facd4267c8da0eca736 (patch) | |
tree | d796fa7162459e11d73df4b1b7ba8b962318d7fe /DOCS/man/input.rst | |
parent | 029cd8a813eb07cdc3321a2345514c7ab631c92f (diff) | |
download | mpv-7df9ebda6c9828b75b814facd4267c8da0eca736.tar.bz2 mpv-7df9ebda6c9828b75b814facd4267c8da0eca736.tar.xz |
DOCS: clarify how client/script names work
This isn't really clearly stated anywhere and could understandably lead
to some confusion.
Diffstat (limited to 'DOCS/man/input.rst')
-rw-r--r-- | DOCS/man/input.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index cf4bd4c649..25f52e3c10 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1174,7 +1174,8 @@ Input Commands that are Possibly Subject to Change ``script-message-to <target> [<arg1> [<arg2> [...]]]`` Same as ``script-message``, but send it only to the client named ``<target>``. Each client (scripts etc.) has a unique name. For example, - Lua scripts can get their name via ``mp.get_script_name()``. + Lua scripts can get their name via ``mp.get_script_name()``. Note that + client names only consist of alphanumeric characters and ``_``. This command has a variable number of arguments, and cannot be used with named arguments. @@ -1186,7 +1187,8 @@ Input Commands that are Possibly Subject to Change The argument is the name of the binding. It can optionally be prefixed with the name of the script, using ``/`` as - separator, e.g. ``script-binding scriptname/bindingname``. + separator, e.g. ``script-binding scriptname/bindingname``. Note that script + names only consist of alphanumeric characters and ``_``. For completeness, here is how this command works internally. The details could change any time. On any matching key event, ``script-message-to`` |