Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I 'ring' the PC's internal speaker?
Message
 
À
06/10/2005 10:49:25
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01056765
Message ID:
01056801
Vues:
24
This message has been marked as the solution to the initial question of the thread.
Try this:
FUNCTION Beep
LPARAMETERS nFrequency, nDuration

  IF EMPTY(nFrequency)
    nFrequency = 1000
  ENDIF

  IF EMPTY(nDuration)
    nDuration = 40
  ENDIF
	
  DECLARE Beep IN Win32API INTEGER dwFreq, INTEGER dwDuration

  =Beep(nFrequency, nDuration)
	
RETURN
>I am trying to make the internal PC speaker beep by issuing ?? CHR(7). It does not seem to work for me. My PC has a soundcard (or perhaps its built into the MB) but I don't have external speakers attached so I want to use the internal one.
>
>Does anyone know how to do this?
>
>Regards,
>
>Mike
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform