warp_pointer(+SrcWindow, +DestWindow, +SrcX, +\SrcY, +SrcW, +SrcH, +DestX, +DestY)
Moves the pointer to the coordinates specified by DestX and DestY, relative to DestWindow's origin. It generates events just as if the user had moved the pointer.
SrcWindow is one of:
DestWindow is one of:
SrcX, SrcY, SrcW, SrcH are integers that specify the region, if any, inside SrcWindow where the pointer must be prior to the move.
DestX, DestY are integers giving the coordinates of the final pointer destination.
warp_pointer/8 allows a lot of freedom for specifying pointer
movements, but its use is rarely necessary because
the usual cases.