win32gui.SetFocus

SetFocus(hwnd)

Sets focus to the specified window.

Parameters

hwnd : int

The handle to the window