Retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle
#include <WinAPIGdi.au3>
_WinAPI_MonitorFromRect ( $tRECT [, $iFlag = 1] )
$tRECT | $tagRECT structure that specifies the rectangle of interest in virtual-screen coordinates. |
$iFlag | [optional] The flag that specifies the function's return value if the rectangle does not intersect any display monitor. This parameter can be one of the following values. $MONITOR_DEFAULTTONULL $MONITOR_DEFAULTTONEAREST (Default) $MONITOR_DEFAULTTOPRIMARY |
Search MonitorFromRect in MSDN Library.