bool isWindowOpen(String winName) { final ret = getWindowProperty(winName, WindowPropertyFlags.WND_PROP_VISIBLE).toInt(); return ret != 0; }