How do you getFocus()
#1
has anyone found a workaround to get the focused control object from xbmcgui? i'd like to have onaction do different things in my script depending whether "b" was pushed with a button selected, or a list item.

devs, any change you could write a function in xbmcgui that would tell us which object was currently focused? i don't know how hard that would be, but it seems like whatever function sends the oncontrol message has access to that information....

i'd rather not have to track every directional keypress to try to predict which control they're on, but so far that's the only workaround i can think of.

alexpoet
For scripts, script development tools, and documentation, visit my website:
http://www.maskedfox.com/xbmc/
Reply

Logout Mark Read Team Forum Stats Members Help
How do you getFocus()0