Thread Rating:
  • 0 Vote(s) - 0 Average
Start script with onclick?
#1
Hello

i wanna start my internet browser directly from the main Menu(without clicking 10 times trough a launcher...). How can i manage that? i already tried the executescript function with onclick:

PHP Code:
...
<
onclick>xbmc.excecutescript('/home/testuser/apps/ov_webbrowser/xbmc/start_webbrowser.sh')</onclick>
... 

but it won't work!

when i put this line (without the onclick) into the autoexec.py it starts.

someone got the idea to get this working?

thanks for reading
greets
Reply
#2
typo. executescript != excecutescript
Reply
#3
XBMC.RunScript()
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
lol even worse typo Smile thanks for pointing that out Wink
Reply
#5
ok, lol typo only in the post
i didn't wrote "eXCEcutescript" in my sourcecode

well i now tried:

PHP Code:
...
<
onclick>XBMC.RunScript('/home/testuser/apps/ov_webbrowser/xbmc/start_webbrowser.sh')</onclick>
... 

but it didnt work either Sad


if i start the .sh file from my gnome terminal it works, so the file is executable and ok.
Reply
#6
no quotes or single quotes
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#7
Ehm,

a little bit off topic maybe, but regarding your browser starting.

When you start browser, do you actually close xbmc and start fluxbox session or browser is opened on top of the xbmc?

I'm using xbmc live and if I open browser directly from xbmc it will not allow me to do anything, it just stays on top but all keys are moving in xbmc.

Am I missing something, or this is normal behavior.

Thx and good luck with the script Wink
Reply
#8
Nuka1195 Wrote:no quotes or single quotes

goddamn quotes!!!
it works now, THANKS A LOT Laugh
Reply
#9
Glad to see you worked that out Wink
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Start script with onclick?00