def SendMessage(self, msg): '''Send message to the top window''' logging.debug("SendMessage "+msg + " to the current top window") win32gui.SendMessage(self.hwnd, msg, 0, 0)