win32gui.FindWindow

PyHANDLE = FindWindow(ClassName, WindowName )

Retrieves a handle to the top-level window whose class name and window name match the specified strings.

Parameters

ClassName : PyResourceId

Name or atom of window class to find, can be None

WindowName : string

Title of window to find, can be None