AMOSi:Limit Mouse
an example can be found on AMOSPro_Examples:Examples/H-5/Help_50.AMOS
Restricts the MOUSE movements to the LIMITs of a given rectangle on screen. You set up the size of this rectangle by giving its coordinates.
Limit Mouse x1,y1 To x2,y2