#include <WinAPI.au3>

Local $iX, $iY

$tRect = DllStructCreate($tagRECT)
DllStructSetData($tRect, "Left", 20)
DllStructSetData($tRect, "Top", 50)
DllStructSetData($tRect, "Right", 200)
DllStructSetData($tRect, "Bottom", 200)

$tPoint = _WinAPI_PointFromRect($tRect, False)
_WinAPI_GetXYFromPoint($tPoint, $iX, $iY)

MsgBox(4096, 'PointFromRect', 'x = ' & $iX & @LF & 'y = ' & $iY)