2016-04-02, 15:32
Hi.
I was planning to get a list of albums from a panelcontrol back to my script (so I can list the songs), but of course nothing works as expected.
From python I can get a reference to the listcontrol using: (pseudocode below!)
But any attempt at getting a size, or a list, or anything at all doesn't work..
The panelcontrol is filled dynamically from my plugin (the same plugin that is accessing the panelcontrol), and shows nicely in my skin.
What to do?
I was planning to get a list of albums from a panelcontrol back to my script (so I can list the songs), but of course nothing works as expected.
From python I can get a reference to the listcontrol using: (pseudocode below!)
Code:
c = ACTIVEWINDOW.getControl(92222)
But any attempt at getting a size, or a list, or anything at all doesn't work..
Code:
c.size() # Returns 0, even though the conrol with id 92222 has plenty items.
c.getListItem(1) # I was planning to get the listitems into a list using a "for i in range..." (since I couldn't find a getList() function anywhere??!) - but there is nothing to get?
The panelcontrol is filled dynamically from my plugin (the same plugin that is accessing the panelcontrol), and shows nicely in my skin.
What to do?