Beep

(Engine-Level Function)

Description: Causes a tone to sound on the computer's internal speaker.
Returns: Nothing
Usage Script or steady state.
Function Groups: Speech and Sound
Related to: Sound
Format: Beep(Frequency)
Parameters::  
Frequency
Required. 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.

Within an Anywhere Client session, this function does nothing.

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".