var x, y, button : int %vars for the mouse where code
loop %needs to be in a loop to keep on reading mouse data
Mouse.Where (x, y, button) %code to find data on mouse
put " ", x, " ", y %put mouse location
%check to see if button is hit
if button = 1 then
locatexy (maxx div 2, maxy div 2)
put "you clicked the button"