G�n�re des tonalit�s simples sur le haut-parleur
#include <WinAPIError.au3>
_WinAPI_Beep ( [$iFreq = 500 [, $iDuration = 1000]] )
$iFreq | [optionnel] La fr�quence du son, en hertz. Ce param�tre doit �tre dans l'intervalle 37 � 32767. |
$iDuration | [optionnel] La dur�e du son, en millisecondes. Windows Me/98/95: Ce param�tre est ignor�. |
Succ�s: | Retourne True |
�chec: | Retourne False |
Le contr�le du volume et du commutateur Muet n'ont aucun effet sur Beep. Vous entendrez encore le son.
Consultez Beep dans la librairie MSDN.
#include <MsgBoxConstants.au3> #include <WinAPIError.au3> Example() Func Example() Local $iFreqStart = 100 Local $iFreqEnd = 250 MsgBox($MB_SYSTEMMODAL, "Exemple _WinAPI_Beep", "Ascendant") For $iFreq = $iFreqStart To $iFreqEnd _WinAPI_Beep($iFreq, 100) ToolTip("Frequency = " & $iFreq) Next MsgBox($MB_SYSTEMMODAL, "Exemple _WinAPI_Beep", "Descendant") For $iFreq = $iFreqEnd To $iFreqStart Step -1 _WinAPI_Beep($iFreq, 100) ToolTip("Frequency = " & $iFreq) Next EndFunc ;==>Example