keymap question - one button to do one task then another
#1
Hi all,

I want to do the following:

<four>Stop,XBMC.ActivateWindow(Home)</four> (this doesn't work)

Essentially I want the 4 button to go to Home, stopping any music or movie that may be playing.

Can this be done?

Cheers

Pete
Reply
#2
yes. just script it and map the button to a runscript()
Reply
#3
Thanks Spiff, you're being tons of help with this project....
Reply
#4
So I'm guessing the script needs the following lines:

Code:
xbmc.PlayerControl(Stop)
xbmc.activatewindow(home)

But I have no idea how to write the script... can you tell me how or point me to a good resource that assumes I know absolutely noting about writing code or scripts?

Thanks..

Pete
Reply
#5
uhm, wiki and google.

but in any case, see autoexec.py which sits in the scripts dir in svn. you want

Code:
import xbmc

xbmc.executebuiltin('playercontrol(stop)')
xbmc.executebuiltin('activatewindow(home)')
Reply
#6
Cheers Spiff...
Reply

Logout Mark Read Team Forum Stats Members Help
keymap question - one button to do one task then another0