2018-01-05, 14:43
Hi all,
I was wondering if there is a way to figure out in which window kodi is when a plugin is called? To give a little background. I want to see if I can make a context aware onscreen keyboard which selects for instance an auto complete provider based on where you are. So that in YouTube it takes YouTube while in your local lib auto completion is based on your lib. I have played around with info lables and they help me to figure out if a plugin is running with Container.FolderPath. unfortunately this seems to be null anywhere in home or settings so I can't figure out if someone is using it in home to search the lib or if he wants to do a setting. Maybe someone has an idea how to differentiate between home and settings maybe even more specific which settings are called so that a specific auto complete for let's say folders on your disk could be loaded.
Thanks
Benni
P.s. I also played with System.CurrentWindow which seems to be null all the time. Is that not working?
I was wondering if there is a way to figure out in which window kodi is when a plugin is called? To give a little background. I want to see if I can make a context aware onscreen keyboard which selects for instance an auto complete provider based on where you are. So that in YouTube it takes YouTube while in your local lib auto completion is based on your lib. I have played around with info lables and they help me to figure out if a plugin is running with Container.FolderPath. unfortunately this seems to be null anywhere in home or settings so I can't figure out if someone is using it in home to search the lib or if he wants to do a setting. Maybe someone has an idea how to differentiate between home and settings maybe even more specific which settings are called so that a specific auto complete for let's say folders on your disk could be loaded.
Thanks
Benni
P.s. I also played with System.CurrentWindow which seems to be null all the time. Is that not working?