def __init__(self, title): self.topmost = not self.is_desktop_on_foreground() self.hwnd = win32gui.FindWindow(None, title)