Running OpenPHT on a RPI3, connected with HDMI and using my Samsung CEC enabled remote to control my OpenPHT
I customized my red/green/yello/blue buttons with remote.xml file, but I would like to have a green button that goes directly to the search box.
is this possible?
What is the syntax
current setup (NOT working):
XBMC.ActivateWindow(Home)
ActivateWindow(Search)
ContextMenu
fullscreen
I tried also
XBMC.ActivateWindow(Search)
Search
But without succes.
Anybody ?
Kind regards,
Bart
@bart.plessers:
What you want is ActivateWindow(10051)
10051 is the Window ID of the PlexSearch Window.
@MagnumDoomguy : works like a charm. Many thanx, hands up!
PS. Are these codes somewhere documented?
Yes and no. Ultimately the codes used in the keymaps for functions are codes from the skinning engine. (Which is why I knew the above answer). So, much (but not all) of the Kodi documentation applies. It doesn’t apply for stuff that Plex, Inc. added to the skinning engine for PHT (which OpenPHT has inherited) though, which the above is an example of – the 10051 window for the search function is a new thing Plex, Inc. added. All of the skinners learn this stuff the same way – reading through existing skins and figuring out what they’re doing.
For functions for keymaps – much of this will work:
http://kodi.wiki/view/list_of_built-in_functions
For window IDs for opening windows with the ActivateWindow() function – much of this work:
http://kodi.wiki/view/Window_IDs