How to call an addon with parameter?
#1
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:
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
Reply
#2
sys.argv
Reply
#3
this works fine - thanks.

(2013-11-19, 23:53)divingmule Wrote: sys.argv
Reply

Logout Mark Read Team Forum Stats Members Help
How to call an addon with parameter?0