grabbing a media windows list control
#1
this does not work. it always returns -1. i'm trying to grab a media windows list control and get the selected item. the reason is i want to be able to fill a playlist with this listitem.

grabbing the infolabels works, but when using a mouse if the focus changes so do the infolabels.

can anything be done?

it does appear to grab the list control, but no methods work on it. there currently is no way to make the call to grab the window a windowXML window, in case that is the issue.

PHP Code:
import xbmcgui
        window 
xbmcgui.Window(xbmcgui.getCurrentWindowId())
        
listItem window.getControl(50)
        print 
listItem.getSelectedPosition() 
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
grabbing a media windows list control0