xbmc - Python if valuea is equal and if valueb is not equal -
i made little script work xbmc , i'm not able work. here code:
import xbmcgui import xbmc while (not xbmc.abortrequested): win = (xbmcgui.getcurrentwindowid()) menu = 0 if win == 10000 , menu != 10000: print ("home menu") menu = 10000
all want when home menu there, write log (but once) write in log when on menu
thanks in advance
set menu = 0
outside of while
loop; resetting 0 each time otherwise:
menu = 0 while (not xbmc.abortrequested): win = (xbmcgui.getcurrentwindowid()) if win == 10000 , menu != 10000: print ("home menu") menu = 10000
python xbmc
No comments:
Post a Comment