win32gui.FindWindowEx

PyHANDLE = FindWindowEx(Parent, ChildAfter , ClassName , WindowName )

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

Parameters

Parent : PyHANDLE

Window whose child windows will be searched. If 0, desktop window is assumed.

ChildAfter : PyHANDLE

Child window after which to search in Z-order, can be 0 to search all

ClassName : PyResourceId

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

WindowName : string

Title of window to find, can be None