Getting the current selection
#19
bump!

Wow, this thread has been around for more than a year and still not addressed in the code??
I've found many ways to do:
  • Get the DBID of the selected item (int)
  • Get name/path/nameandpath of selected item (string)
  • Get the current window (object)
But still no way to get the item as an object!

Personally, I'm not looking to manipulate the list-item itself (in the GUI, that is). I want to manipulate database information of that list-item.

So in theory, I wouldn't need to get the actual
Code:
activeWindow.activeControl.activeListItem

I would be very happy to just create an item on the fly to be able to access the database:
PHP Code:
import xbmc
DBID 
xbmc.getInfoLabel('ListItem.DBID')
pseudoItem loadItem(DBID# << My problem is right here!
pseudoItem.setProperty(namevalue# << Make DB changes here 

Help, anyone!
Confused
Reply


Messages In This Thread
Getting the current selection - by jhsrennie - 2012-07-02, 16:53
RE: Getting the current selection - by pieh - 2012-07-03, 10:30
RE: Getting the current selection - by ronie - 2012-09-21, 20:17
RE: Getting the current selection - by ronie - 2012-09-21, 23:19
RE: Getting the current selection - by Popeye - 2012-11-27, 23:10
RE: Getting the current selection - by belese - 2013-10-10, 16:04
RE: Getting the current selection - by EtgarDizz - 2013-11-13, 23:27
RE: Getting the current selection - by tim619 - 2015-11-07, 02:18
RE: Getting the current selection - by Torben - 2016-04-02, 15:14


Logout Mark Read Team Forum Stats Members Help
Getting the current selection0
This forum uses Lukasz Tkacz MyBB addons.