Solved How do you use the action Seek(##) in scripts?
#1
Shouldn't this work?
Code:
import xbmc
xbmc.executebuiltin( "XBMC.Action(Seek(-10))" )
Using Seek(-10) in keymaps.xml works fine. I've tried other actions in the script and they work fine. I'm guessing maybe values should be supplied differently when used in a script, but how? Not much help reading the wiki.
Reply
#2
Seek isn't an action, Seek is a builtin.

xbmc.executebuiltin('Seek(-10)')
Reply
#3
Thanks. Though, I don't really get the difference except you call for them differently. Even though I know just basic Python, actions seems to be a Kodi thing and the wiki isn't that helpful.

So I guess Seek shouldn't be on this page? http://kodi.wiki/view/Action_ID
Reply
#4
indeed.

actions are commands available to skinners and keymaps (or through the 'Action builtin') they have a context - i.e. an action is only defined in a particular window. builtin commands are available to keymaps, skinners and scripters (and for rpc through the event api). they do not have a context, and are defined globally. differences are a bit subtle and not at all obvious, but there you have it..
Reply

Logout Mark Read Team Forum Stats Members Help
How do you use the action Seek(##) in scripts?0