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
