- Moderator
- #1
Hi
I have a plugin that I want to perform some of my own action instead of the default action.
Say, I catch the user pressing record. Now, instead of showing the normal "Do you wish to record", I want to give the user other options in another window.
Is there any way to let my plugin take the userinput and stop the default code from excecuting?
A small test like this one below, shows that my script is never excecuted (the log doesn't have an entry for "PowerPlay"), because there already is a function bound to the record-button of my remote:
What I would like to do is to override the play, record and stop-button in the fullscreen-tv window. That's all
I have the code behind these three buttons working, but right now I can only map them to keys on my keyboard that is not being used, or buttons on my remote that is also not being used. Not very userfriendly of me to release the plugin like that
I have a plugin that I want to perform some of my own action instead of the default action.
Say, I catch the user pressing record. Now, instead of showing the normal "Do you wish to record", I want to give the user other options in another window.
Is there any way to let my plugin take the userinput and stop the default code from excecuting?
A small test like this one below, shows that my script is never excecuted (the log doesn't have an entry for "PowerPlay"), because there already is a function bound to the record-button of my remote:
Code:
public void OnAction(MediaPortal.GUI.Library.Action action)
{
switch (action.wID)
{
case MediaPortal.GUI.Library.Action.ActionType.ACTION_RECORD:
//stopRecordingDialog();
Log.Info("PowerPlay - user pressed record");
break;
}
}
What I would like to do is to override the play, record and stop-button in the fullscreen-tv window. That's all
I have the code behind these three buttons working, but right now I can only map them to keys on my keyboard that is not being used, or buttons on my remote that is also not being used. Not very userfriendly of me to release the plugin like that