I need some helpe whit <onclick>
#1
Hello m8
Sorry to ask this dum question
but I have search the net for a answer but just can't find a clear answer

I have made an extra button in the home.xml like this

<item id="19">
<label>Test</label>
<onclick> </onclick>
<icon>-</icon>
<thumb>-</thumb>
</item>
what i need it to, is lunching a /usr/local/test.sh
can anyone be so kind to post me the answer
than x
Reply
#2
you can find such things in the list of available functions in our wiki:
http://wiki.xbmc.org/index.php?title=Lis..._functions

Code:
<onclick>System.Exec(/usr/local/test.sh)</onclick>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
(2013-03-01, 23:37)ronie Wrote: you can find such things in the list of available functions in our wiki:
http://wiki.xbmc.org/index.php?title=Lis..._functions

Code:
<onclick>System.Exec(/usr/local/test.sh)</onclick>

Thanx a lot m8
i must getting blind
sorry
Reply
#4
(2013-03-01, 23:37)ronie Wrote: you can find such things in the list of available functions in our wiki:
http://wiki.xbmc.org/index.php?title=Lis..._functions

Code:
<onclick>System.Exec(/usr/local/test.sh)</onclick>

Hi mate, Is there similar code to launch the window that appears when you select "Install from zip file" (when navigating through System --> Add ons ---> Install from zip file...


Many thanks in advance Smile
Reply
#5
(2013-03-05, 13:24)jimmymcmahon Wrote:
(2013-03-01, 23:37)ronie Wrote: you can find such things in the list of available functions in our wiki:
http://wiki.xbmc.org/index.php?title=Lis..._functions

Code:
<onclick>System.Exec(/usr/local/test.sh)</onclick>

Hi mate, Is there similar code to launch the window that appears when you select "Install from zip file" (when navigating through System --> Add ons ---> Install from zip file...


Many thanks in advance Smile

maybe, maybe not. depends on what you want to accomplish exactly.

opening windows can be done in general by using 'ActivateWindow(name)'
but many windows will only work properly when they're launched from within the correct section in xbmc.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
I need some helpe whit <onclick>0