Mousetmaxposition() Limits mouse movement to the window found in max and min x,y. Example: mousetmaxposition(4,10,5,9); This limits the mouse to window 4,10,5,9.