2009-03-06, 20:50
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.
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()