Page 1 sur 1

[R] Executer 2 Action en meme temp

Posté : mer. 31 oct. 2007 17:12
par astaroth
Bonjour,

j'aimerai savoir si c'est possible de faire 2 actions en meme temp, par exemple:

Code : Tout sélectionner

SoundPlay ( "C:\Sound 1.mp3" , 1 ) 
$b = True 
If $b = True Then FileInstall ( "C:\Users\Nemo\Desktop\screamface.jpg" , "C:\screamface.jpg" ) 
SplashImageOn ( "Bou!!" , "C:\screamface.jpg" )

Je voudrait que Sound 1.mp3 continu pendant la suite du script.

merci

Posté : jeu. 01 nov. 2007 14:09
par Tlem
Avez vous regarder l'aide de la fonction _SoundPlay ?

Car sinon, vous êtes passer à coté de quelque chose.

Code : Tout sélectionner

#include <Sound.au3>
_SoundPlay ( $sSnd_id [, $fWait ] )

Parameters :

$sSnd_id Sound ID (the 'alias') as returned by _SoundOpen or a file

$fWait [optional] This flag determines if the script should wait for the sound to finish before continuing:
1 = wait until sound has finished
0 = continue script while sound is playing (default)

Posté : jeu. 01 nov. 2007 15:12
par astaroth
[quote="Tlem"]Avez vous regarder l'aide de la fonction _SoundPlay ?

Car sinon, vous êtes passer à coté de quelque chose.

Code : Tout sélectionner

#include <Sound.au3>
_SoundPlay ( $sSnd_id [, $fWait ] )

Parameters :

$sSnd_id Sound ID (the 'alias') as returned by _SoundOpen or a file

$fWait [optional] This flag determines if the script should wait for the sound to finish before continuing:
1 = wait until sound has finished
0 = continue script while sound is playing (default)

Merci pour la rep :wink: