Mapping multiple commands to one key
#1
Ok I so I have a remote working with XBMC, it send keyboard commands so in that case forget I have a remote. I am looking for a sleep timer that will do the following in a particular order

1. Stop playing video (to record where to resume)
2. Exit XBMC
3. Suspend PC (so TV will auto shutoff)

It would be nice if I could press a key and have a dialog come up increment the timer after each press such as 30,60,90,120,Off, but I'm also ok with a input dialog to input minutes.

I know that there is an alarm function, but I do know how to execute multiple commands from the function. Will this involve writing a script?

I would really like to not have to set a separate sleep timer on my PC and TV to achieve what I'm sure is easily capable in XBMC

Also for future reference, what are all the modifiers you can add to keys and can you use a combination of 2 or more modifier keys?
Reply
#2
Deleted
Reply
#3
Yes, you will need to write a script ( probably in Python) to perform each of those actions. You would then map your remote button to execute that script.
Reply

Logout Mark Read Team Forum Stats Members Help
Mapping multiple commands to one key0