Calling script in remote.xml after play pressed issue - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Calling script in remote.xml after play pressed issue (/showthread.php?tid=143585) |
Calling script in remote.xml after play pressed issue - mrloofer - 2012-10-25 Hi all So I was under the impression that you can add multiple functions to the remote.xml file for each command, play, pause etc. I made the change below but now it's executing the script fine but not performing the preceding function ie play/pause. When I remove the script the play/pause works fine. Any ideas what I'm doing wrong? Code: <play>Play</play> Cheers. RE: Calling script in remote.xml after play pressed issue - artrafael - 2012-10-25 The key assignments are not cumulative. If you have multiple assignments for a given key in the same or multiple xml files, the last one read is the one that is in effect. Thus, for <play>, the RunScript assignment is in effect because it replaced the Play assignment. If you want to perform multiple functions with a single keypress, you should place those functions in your script. Add this to your lightsoff.py and lightson.py scripts: Code: xbmc.executebuiltin( "XBMC.Action(PlayPause)" ) You'd then only need the <play> and <pause> key assignments that run your lightsoff and lightson scripts, respectively. RE: Calling script in remote.xml after play pressed issue - mrloofer - 2012-10-26 Excellent! That worked a treat! Cheers. |