win32gui.GetActiveWindow

HWND = GetActiveWindow()