check for WindowXMLDialog already showing
#1
Hi guys,

I've written a small script which opens a dialog window using "WindowXMLDialog". It's a remote volume control for one of my other xbmc clients and so I mapped a button to open the dialog and the same button will do the action like volume up or down. The issue I'm facing right now is that whenever i press the mapped key, my custom dialog will show up again and again. I didn't find a way to check whether the dialog is already active/shown...is there any?
Reply
#2
set a window property on startup and clear it when the script exits.

now when your script starts, it should first check if the property is already set and exit straight away if it is.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
great, thank you so much! Smile
Reply

Logout Mark Read Team Forum Stats Members Help
check for WindowXMLDialog already showing0