How to capture "onAction" in existing window (Myvideonav.xml)
#1
As title. I wanna capture "onAction" - ACTION_PREVIOUS_MENU, ACTION_NAV_BACK... by my plugin.
Is it impossible?
Thank you. Smile
Reply
#2
Hello luka,

I'm not too sure on how to do it as my python skills aren't very good but you may be able to achieve the same thing using skin conditions in python like this:

Previous window:
PHP Code:
while xbmc.getCondVisibility('Window.Previous(Home)') == 1:
print 
"The home window was previous" 

Control focus:
PHP Code:
while xbmc.getCondVisibility('Control.HasFocus(10)') == 1:
print 
"The control with the id 10 has focus" 

Here is a list of the conditions : Condition List
Reply
#3
@toyota12303: thanks for trick. But, I wanna "control" navigation back. In my plugin, when I press "backspace" navigation is "ACTION_NAV_BACK" and, when path plugin is "plugin://plugin.video.foo" (Parrent Directory), I press "backspace" navigation is "ACTION_PREVIOUS_MENU". I tried use keymap, but dont work, because keymap only work for "window.xml"
Reply

Logout Mark Read Team Forum Stats Members Help
How to capture "onAction" in existing window (Myvideonav.xml)0