# Plugin: Keyboard-Send Passes keys through CLI

**URL:** <https://forums.plex.tv/t/plugin-keyboard-send-passes-keys-through-cli/164058>\
**Category:** Apps & Creations\
**Created:** [October 21, 2016, 1:47pm UTC](https://forums.plex.tv/t/plugin-keyboard-send-passes-keys-through-cli/164058 "2016-10-21T13:47:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![videotecaCNSU](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/videotecacnsu/32/17514_2.png) [@videotecaCNSU](https://forums.plex.tv/u/videotecaCNSU)\
**Post date:** [October 21, 2016, 1:47pm UTC](https://forums.plex.tv/t/plugin-keyboard-send-passes-keys-through-cli/164058/1 "2016-10-21T13:47:32Z")

</div>

Some days ago I was looking for a way to pass commands from terminal to control Rasplex from a Wiimote plugin. The wiimote plugin isn´t finished but I found this useful and though that it could help other people as I couldnt find it on any manual or wiki.

Its a modification on the xmbc-send script, which works if you change the default port as it point to 9777 and RasPlex uses 9778 and passes GUI commands.  
This couldn´t help me as for example, the ENTER key sometimes work as SELECT and on fullscreen works as the PLAYPAUSE command, so I mod it to pass actual keyboard keys.

Add it anywhere you want and make it executable with `chmod +x filename.sh` to run it as ./keyboard-send.py or run it with `python keyboard-send.py`

You can run actions like:  
./keyboard-send.py --action=“Enter”  
./keyboard-send.py --action=“Escape”  
./keyboard-send.py --action=“Up”

etc

With this you can easily make any kind of bash script or a new kind of controller

---

<div class="post-metadata">

**Author:** ![benjaminwolf](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/benjaminwolf/32/4305_2.png) [@benjaminwolf](https://forums.plex.tv/u/benjaminwolf)\
**Post date:** [October 24, 2016, 6:36am UTC](https://forums.plex.tv/t/plugin-keyboard-send-passes-keys-through-cli/164058/2 "2016-10-24T06:36:55Z")

</div>

Very cool, @videotecaCNSU . Thanks for sharing. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:26pm UTC](https://forums.plex.tv/t/plugin-keyboard-send-passes-keys-through-cli/164058/3 "2020-01-08T19:26:17Z")

</div>


