win32gui.SetActiveWindow

HWND = SetActiveWindow(hwnd)

Parameters

hwnd : int

The handle to the window