2016-04-10, 00:01
(2016-04-07, 16:47)henrik4223 Wrote: Maybe I am slow but I really dont know how to make a script for Kodi - I would very muck like tu use the below command every time my doorbell rings via eventghost but I dont know how to make the script or how to make it run - Anyone?
<green>XBMC.RunPlugin(plugin://plugin.video.surveillanceroom?action=show_preview&camera_number=1)</green>
http://kodi.wiki/view/HOW-TO:Configure_E..._(Windows)
Make an xml file keyboard.xml and drop it in .kodi/userdata/keymaps
In the file, do this replacing <green> with whatever you have mapped as a button command for eventghost to trigger. For instance, you can use <g> as the G button command for default key press which is not defined in Kodi or blank. Unless you map some other way via remote or program permissions.
<keymap>
<global>
<keyboard>
<green>XBMC.RunPlugin(plugin://plugin.video.surveillanceroom?action=show_preview&camera_number=1)</green>
</keyboard>
</global>
<FullScreenVideo>
<keyboard>
<green>XBMC.RunPlugin(plugin://plugin.video.surveillanceroom?action=show_preview&camera_number=1)</green>
</keyboard>
</FullScreenVideo>
</keymap>
Here's a keymap reference: http://kodi.wiki/view/Keyboard_controls