Posts: 5
Joined: Feb 2016
Reputation:
0
I am writing a program addon to control the volume on my TV through IP. I want to have it run all the time so it doesn't have to re-connect every time the volume buttons are pressed. Is there some kind of callback system where I can map a key on the remote to a function in my script? Like "onVolumeUp()"? Or set a key mapping to a function in a script?
Posts: 4
Joined: Aug 2016
Reputation:
0
I don't know if you can map a remote key to a function in your script. What I know you can do is map a key to a built in function. From there you could try the RunScript,RunPlugin,RunAddon,Container.Update or Container.Refresh built in functions and pass some parameters to your script such that it executes the specific function you want.