Beep

Description:              This statement causes a tone to sound on the computer's internal speaker.

Returns:                    Nothing

Usage:                       Script or Steady State

Format:                      Beep(Frequency)

Parameters:             Frequency    { numeric }  { required }  { no default: }

                                                Any numeric expression giving the frequency to be output to the speaker.

Comments:               The minimum frequency is 1190000 / 65535 ~= 18.16. If the frequency is set below the minimum frequency or invalid, the speaker will turn off.

Example:

If MatchKeys(2, "on");

[

  Beep(2000) { A 2kHz tone };

]

If MatchKeys(2, "off");

[

  Beep(0) { No tone };

]

The example above results in a 2000 Hz sustained beep sounding when the user types "on" until the user types "off".

See Also:

AlmTone | Sound