587
'BE' Mnemonic
Begin Echoing
Description
Use 'BE' to begin echoing characters entered from the keyboard in response to an
INPUT (or READ, FIND, ...) directive. Echoing is ON by default for channel 0 (zero, the
main terminal). For other channels, echoing is OFF by default. To end echoing, use
'BEEP' Mnemonic
Simple Sound Effect
Description
The 'BEEP' mnemonic allows applications to play sounds in a simpler manner than
the MULTI_MEDIA command. This mnemonic accepts a string that contains the same
keywords as the MSGBOX directive relative to the system sounds of "STOP",
"QUESTION", "INFO", "EXCLAMATION", "?" and "!"; e.g.,
PRINT 'BEEP'("STOP")
PRINT 'BEEP'("*STOP,w")
The ,w option causes ProvideX to wait until the sound has completed before
continuing any processing. In order for ,w to work, the sound needs to be
registered. Use an asterisk * before the sound name to have the system look up the
sound in the Windows registry (which is not the same as sound names in the control
panel); e.g.,
PRINT 'BEEP'("*MailBeep")
! Registered Sound Event
PRINT 'BEEP'("*C:\Windows\Media\tada.wav") ! Specific File
PRINT 'BEEP'("*Windows XP Logoff Sound") ! Found by automatic search
In the last example, the real filename is C:\Windows\Media\Windows XP
Logoff Sound.wav. If the name given does not match a registered sound, then
the Windows OS searches its list of possible sound locations (current directory,
Windows directory, System directory, etc.). For more details, consult the Microsoft
documentation on Registering Sound Events or check the registry for
HKEY_CURRENT_USER\AppEvents\EventLabels\*
'BG' Mnemonic
Begin Generating Error #29
Description
Use 'BG' to begin generating Error #29: Invalid Mnemonic or position
specification whenever an invalid mnemonic is executed. To end generation of