Posts: 10
Joined: Apr 2005
Reputation:
0
in pm3, is there any way to re-bind the button launching the scripts menu to something else. i was hoping to find a way to have it execute scriptbrowser.py
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
have a look at <yourvideostandard>/dialogsubmenu.xml
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
you want to edit home.xml <id>100</id>
change <hyperlink>105</hyperlink>
to <execute>xbmc.runscript([location]\scriptbrowser.py)</execute>
Posts: 10
Joined: Apr 2005
Reputation:
0
nice nuka. i figured i had to replace the <hyperlink> tag with an <execute>, but i never would have got the syntax right. thanks!
Posts: 10
Joined: Apr 2005
Reputation:
0
one more question: what is the form for entering the path? i've tried q:\scripts\scriptbrowser\scriptbrowser.py , q:\\scripts\\scriptbrowser\\scriptbrowser.py , and a couple of others with no luck. any ideas?
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
<execute>xbmc.runscript(q:\scripts\scriptbrowser\scriptbrowser.py)</execute>
if scriptbrowser.py is in the scriptbrowser folder should work.