sendclick() possible bug
#1
I'm trying to map movie information refresh to a single key so i've got

Code:
keymap
----------------

<o>runscript(special://userdata/scripts/InfoRefresh.py)</o>



InfoRefresh.py

import xbmc

xbmc.executebuiltin('ActivateWindow(2003)')
xbmc.executebuiltin('SendClick(6)')

the video info window (id 2003) quickly appears and vanish as if the button has been clicked, but it hasn't.
If I manually activate the window and run the script or SendClick(6) it works.

using 17.1 20161203-1dd8613
Should this work, is it a bug or am I not using sendclick incorrectly?
Reply
#2
Maybe add a sleep in between somthe window has some time to appear? Not sure if it is meant to be blocking the call until the window is really there
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
I tried with sleep, 1s so i knew it was there. Same behaviour, after the window is there it does deinit as if clicked, but nothing happens.
Reply

Logout Mark Read Team Forum Stats Members Help
sendclick() possible bug0