News:

There is a soft-mute function which we use with the commands like "What song is this?" There is one for system volume, one for each of: MediaMonkey, XBMC, iTunes, MediaPortal.

Main Menu

Doubt with syntax of method GUI.ActivateWindow

Started by aguileramekin, June 19, 2021, 11:59:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aguileramekin

Hi guys, I'm new understanding Kodi development.
I'm trying to understand the following syntax for method GUI.ActivateWindow called through the Raw command

XJson.Raw          GUI.ActivateWindow      "window": "videos", "parameters": [ "videodb://x/y/{1}/" ]

My main doubt is regarding those X and Y ?
I reviewed the whole API and I couldn't find a reference to that syntax...only this:
------
5.6 GUI
5.6.1 GUI.ActivateWindow
Activates the given window
Permissions:
    ControlGUI
Parameters:
    GUI.Window window
    [ string[] parameters ]
Returns:
Type: string.
-----

BUT, which are and how to specify the parameters of that window?  :-\


Kalle

Hi aguileramekin,
for me x,y sounds like window size or placement coordinates - but this is only a guess.


Kalle
***********  get excited and make things  **********

jitterjames

The numbers are IDs defined by Kodi but not published anywhere I can find.

You best hope is to look at the existing commands in VoxCommando, and to look at the information in this page:
https://kodi.wiki/view/Opening_Windows_and_Dialogs

Another very useful trick is to navigate in Kodi to the section you are interested in (like music videos) and then create a Kodi favourite for one of the items (like an artist or a particular video). Then go and look in your Kodi favourites.xml to see the path created for that particular favourite. From that you will get everything you need. One of the numbers will correspond to the ID of that artist or video in the Kodi database. I believe one of the IDs will be the sub section of the category you are browsing.