The MOUSEX() function returns the x location of the mouse pointer relative to the top left corner of the main screen.