2013-11-19, 23:14
Hi,
I use a plugin which I want to modify. My aim is to get items from addons context menu opened from home screen.
Example:
The usual way is
Programs -> *program* -> open item from context menu -> screen x
But I want to add a submenu in my home screen with one entry that brings me directly to screen x.
Now my questions
1. How can I open the addon with parameter?
My onclick eventhandler looks like that:
I guess I could commit some parameters like that
2. How do I read these parameters within my addon.py?
br
lucas
I use a plugin which I want to modify. My aim is to get items from addons context menu opened from home screen.
Example:
The usual way is
Programs -> *program* -> open item from context menu -> screen x
But I want to add a submenu in my home screen with one entry that brings me directly to screen x.
Now my questions
1. How can I open the addon with parameter?
My onclick eventhandler looks like that:
Code:
<onclick>ActivateWindow(10024,plugin://plugin.video.some_addon)</onclick>
I guess I could commit some parameters like that
Code:
<onclick>ActivateWindow(10024,plugin://plugin.video.some_addon?x=foo&y=bar</onclick>
2. How do I read these parameters within my addon.py?
br
lucas