Help with window.getFocus()
#1
I've written a script but keep getting a runtime error when trying to get the window focus when there is no control in focus (mouse is moved away from the control buttons). I assume that this is not a good thing, how can it be avoided? Thanks

17:02:01 T:6000 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.RuntimeError'>
Error Contents: Non-Existent Control 3066
Traceback (most recent call last):
File "C:\Users\T1M\AppData\Roaming\XBMC\addons\script.myChannels\default.py", line 318, in onAction
x = self.getFocus()
RuntimeError: Non-Existent Control 3066
-->End of Python script error report<--
Reply

Logout Mark Read Team Forum Stats Members Help
Help with window.getFocus()0