Well you would have the x and y axis in the condition like IF X<150 AND X>100 THEN IF Y<150 AND Y>100 THEN IF BUTTON() AND #A THEN do what you want