Execute action on playback start
#1
For the script I am building, I need that by pressing any key, for example W, when the video will play - the "audio settings" window will open. But only if the key is pressed before the playback start.
I tried this code, with xbmc.executebuiltin('ActivateWindow(osdaudiosettings)'), but the problem is that it only works for a few seconds because it's with "sleep".
In contrast, this code is excellent, only the problem that it always works until exiting kodi, and I need it to work only if you press the key before, as mentioned.
Is there a way to make a "stop" to abortRequested? And is there a better way, like onNotification?
Reply

Logout Mark Read Team Forum Stats Members Help
Execute action on playback start0