'--- Set the pixel dimensions of area 1.area1Top = 100area1Bottom = 250area1Left = 100area1Right = 250ON TIMER 1 selectedArea = 0 '--- Check if the mouse is over area 1. IF mouseHorz => area1Left THEN IF mouseHorz =< area1Right THEN IF mouseVert => area1Top THEN IF mouseVert =< area1Bottom THEN '--- Code to be executed while the mouse is over area 1. selectedArea = 1 CLEAR TEXT PRINT The mouse is over the area, thus this text is visible. END IF END IF END IF END IF '--- Code to be executed while the mouse isn't over any areas. IF selectedArea = 0 THEN CLEAR TEXTEND TIMER