Focus issue [FIXED]
#1
Hello Smile

I have built a skin for skype, i'm able to display the friends list using the panel control, however, i cant get the focus neither the navigation working.

Here is how look my window, the contacts in the center are displayed using a panel :
Image

Using the keyboard or the mouse, i cant get the focus on it....

Here is my windowxml code :
https://github.com/olixelle/SkypeKodi/bl...e-main.xml

Another issue i have is the "Working.." notificaiton window that opens every time when i launch my script, using the escape key it removes it but i cant get why i have this notification Sad

Maybe the logs will give you more clues :
13:56:17 T:4412 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.skype/
13:56:17 T:4412 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.skype/) failed
13:56:17 T:4412 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/executable)
13:56:17 T:4412 DEBUG: ParentPath = []
13:56:17 T:1376 NOTICE: Thread JobWorker start, auto delete: true
13:56:17 T:6688 NOTICE: Thread BackgroundLoader start, auto delete: false
13:56:17 T:6688 DEBUG: Thread BackgroundLoader 6688 terminating
13:56:17 T:2436 DEBUG: CAESinkDirectSound::CheckPlayStatus: Resuming Playback
13:56:17 T:4412 DEBUG: Keyboard: scancode: 0x01, sym: 0x001b, unicode: 0x001b, modifier: 0x0
13:56:17 T:4412 DEBUG: CInputManager::OnKey: escape (0xf01b) pressed, action is PreviousMenu
13:56:17 T:4412 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
13:56:18 T:4412 DEBUG: Keyboard: scancode: 0x01, sym: 0x001b, unicode: 0x001b, modifier: 0x0
13:56:18 T:4412 DEBUG: CInputManager::OnKey: escape (0xf01b) pressed, action is PreviousMenu
13:56:18 T:4584 NOTICE: Skype : action on window : <xbmcgui.Action object at 0x0CA55A40>
13:56:18 T:4412 DEBUG: Activating window ID: 10001
13:56:18 T:4412 DEBUG: ------ Window Deinit (C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\resources\skins\Default\720p\skype-main.xml) ------
13:56:18 T:4412 DEBUG: ------ Window Init (MyPrograms.xml) ------
13:56:18 T:4412 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/executable)
13:56:18 T:4412 DEBUG: ParentPath = [addons://sources/executable]
13:56:18 T:1200 NOTICE: Thread BackgroundLoader start, auto delete: false
13:56:18 T:1200 DEBUG: Thread BackgroundLoader 1200 terminating
13:56:18 T:1376 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib.dll)
13:56:18 T:4584 INFO: CPythonInvoker(3, C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\addon.py): script successfully run
13:56:18 T:4584 INFO: Python script stopped
13:56:18 T:4584 DEBUG: Thread LanguageInvoker 4584 terminating
13:56:18 T:5152 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - plugin exited prematurely - terminating
13:56:19 T:4412 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0
13:56:19 T:4412 DEBUG: CInputManager::OnKey: return (0xf00d) pressed, action is Select
13:56:19 T:4412 DEBUG: CGUIMediaWindow::GetDirectory (plugin://script.module.skype/)
13:56:19 T:4412 DEBUG: ParentPath = [addons://sources/executable]
13:56:19 T:5152 DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Skype('plugin://script.module.skype/','4','')
13:56:19 T:5152 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the Skype (id=4) plugin...
13:56:19 T:8808 NOTICE: Thread LanguageInvoker start, auto delete: false
13:56:19 T:8808 INFO: initializing python engine.
13:56:19 T:8808 DEBUG: CPythonInvoker(4, C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\addon.py): start processing
13:56:20 T:8808 NOTICE: -->Python Interpreter Initialized<--
13:56:20 T:8808 DEBUG: CPythonInvoker(4, C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\addon.py): the source file to load is "C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\addon.py"
13:56:20 T:8808 DEBUG: CPythonInvoker(4, C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\addon.py): setting the Python path to C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
13:56:20 T:8808 DEBUG: CPythonInvoker(4, C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\addon.py): entering source directory C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype
13:56:20 T:8808 DEBUG: CPythonInvoker(4, C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\addon.py): instantiating addon using automatically obtained id of "script.module.skype" dependent on version 0.0.0 of the xbmc.python api
13:56:20 T:4412 DEBUG: ------ Window Init (DialogBusy.xml) ------
13:56:20 T:8808 NOTICE: Skype : read profile from D:\sources\GIT\perso\SkypeXmlController\SkypeXmlController\bin\Debug\var\skype2kodi\profile.xml
13:56:20 T:8808 NOTICE: Skype : read friends from D:\sources\GIT\perso\SkypeXmlController\SkypeXmlController\bin\Debug\var\skype2kodi\friends.xml
13:56:20 T:8808 NOTICE: Skype : 89 friends found
13:56:20 T:4412 DEBUG: Activating window ID: 13000
13:56:20 T:4412 DEBUG: ------ Window Deinit (MyPrograms.xml) ------
13:56:20 T:4412 DEBUG: ------ Window Init (C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\resources\skins\Default\720p\skype-main.xml) ------
13:56:20 T:4412 INFO: Loading skin file: C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\resources\skins\Default\720p\skype-main.xml, load type: LOAD_ON_GUI_INIT
13:56:20 T:4412 DEBUG: CGUIMediaWindow::GetDirectory ()
13:56:20 T:4412 DEBUG: ParentPath = []
13:56:21 T:4412 DEBUG: Keyboard: scancode: 0x01, sym: 0x001b, unicode: 0x001b, modifier: 0x0
13:56:21 T:4412 DEBUG: CInputManager::OnKey: escape (0xf01b) pressed, action is PreviousMenu
13:56:21 T:4412 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.skype/
13:56:21 T:4412 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.skype/) failed

13:56:21 T:4412 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/executable)
13:56:21 T:4412 DEBUG: ParentPath = []
13:56:21 T:3856 NOTICE: Thread BackgroundLoader start, auto delete: false
13:56:21 T:3856 DEBUG: Thread BackgroundLoader 3856 terminating
13:56:21 T:4412 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
13:56:21 T:4412 DEBUG: Keyboard: scancode: 0x01, sym: 0x001b, unicode: 0x001b, modifier: 0x0
13:56:21 T:4412 DEBUG: CInputManager::OnKey: escape (0xf01b) pressed, action is PreviousMenu
13:56:21 T:8808 NOTICE: Skype : action on window : <xbmcgui.Action object at 0x0CB2F098>
13:56:21 T:4412 DEBUG: Activating window ID: 10001
13:56:21 T:4412 DEBUG: ------ Window Deinit (C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\resources\skins\Default\720p\skype-main.xml) ------
13:56:21 T:4412 DEBUG: ------ Window Init (MyPrograms.xml) ------
13:56:21 T:4412 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/executable)
13:56:21 T:4412 DEBUG: ParentPath = [addons://sources/executable]
13:56:21 T:12968 NOTICE: Thread BackgroundLoader start, auto delete: false
13:56:21 T:8808 INFO: CPythonInvoker(4, C:\Users\olixelle\AppData\Roaming\Kodi\addons\script.module.skype\addon.py): script successfully run
13:56:21 T:12968 DEBUG: Thread BackgroundLoader 12968 terminating
13:56:21 T:8808 INFO: Python script stopped
13:56:21 T:8808 DEBUG: Thread LanguageInvoker 8808 terminating
13:56:21 T:5152 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - plugin exited prematurely - terminating
13:56:22 T:4412 DEBUG: Keyboard: scancode: 0x38, sym: 0x0134, unicode: 0x0000, modifier: 0x100
13:56:22 T:4412 DEBUG: CInputManager::OnKey: alt-leftalt (0x4f0d4) pressed, action is
13:56:22 T:4412 DEBUG: CWinEventsWin32::WndProcWindow is active
13:56:22 T:4412 DEBUG: CWinEventsWin32::WndProc: Focus switched to process C:\Windows\explorer.exe



Thanks in advance for your help, i'm not far from finishing that skype plygin Smile
Reply
#2
fix your addon.xml.
you've created a script, so don't define it as a plugin.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Hello,

thanks, changing the extension point to "xbmc.python.script" fixed the "Working..." popup

But i'm still struggled with the panel
Reply
#4
I finally found the issue... My panel was not able to get the focus because of its id (3)
I changed the id to 122 and it works fine
Reply

Logout Mark Read Team Forum Stats Members Help
Focus issue [FIXED]0