Author Topic: Doubt with syntax of method GUI.ActivateWindow  (Read 1815 times)

0 Members and 1 Guest are viewing this topic.

aguileramekin

  • Jr. Member
  • **
  • Posts: 5
  • Karma: -1
    • View Profile
Doubt with syntax of method GUI.ActivateWindow
« on: June 19, 2021, 11:59:02 PM »
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

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Doubt with syntax of method GUI.ActivateWindow
« Reply #1 on: June 22, 2021, 04:19:40 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Doubt with syntax of method GUI.ActivateWindow
« Reply #2 on: June 22, 2021, 09:59:20 AM »
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.