It beeps because at startup the mouse is both released and not pressed.
IF Rat.pressed THEN.... (rat.pressed = 0 so it’s not — go into the ELSE )
ELSE
IF rat.clicked = FALSE THEN... (rat.pressed = 0, so we do the stuff here)
temp = “”: BEEP <— and you beep
Set a flag to check to see if the mouse has been clicked down at least once before BEEPING for a release.
If rat.pressed THEN
RatPressedOnce = TRUE
‘More stuff
ELSE
IF rat.clicked = FALSE AND RatPressedOnce = TRUE THEN
‘Do stuff
ENDIF
END IF