win32gui.PtInRect

boolean = PtInRect(rect, point )

Determines if a rectangle contains a point

Parameters

rect : (int, int, int, int)

The rect to check

point : (int,int)

The point