2014-02-26, 20:50
Hello everyone,
I'am facing a slight problem with running my custom made script when attaching it to an <onclick> event for a button in the skin xmls
The script itself actually runs fine but the problem occur when i double tap the button with the keyboard either by accident or intentionally; Two different version of the script will get executed and cause it to malfunction all-together.
Is there a solution to this ? like disabling the button on an <onclick> event for a short period of time, i have searched the wiki for a built-in function to disable skin buttons with no luck and i can't access that xml from python cause its a skin xml.
Anyone encountered this problem before ? i would appreciate it if someone could help !
Thanks.
I'am facing a slight problem with running my custom made script when attaching it to an <onclick> event for a button in the skin xmls
Code:
<onclick>XBMC.RunScript("special://home/addons\path_to_my_python_script")</onclick>
The script itself actually runs fine but the problem occur when i double tap the button with the keyboard either by accident or intentionally; Two different version of the script will get executed and cause it to malfunction all-together.
Is there a solution to this ? like disabling the button on an <onclick> event for a short period of time, i have searched the wiki for a built-in function to disable skin buttons with no luck and i can't access that xml from python cause its a skin xml.
Anyone encountered this problem before ? i would appreciate it if someone could help !
Thanks.