Sound file problem in MQL4

Back to topics list To post a new topic, please log in or register
avatar
10
Barcode 2016.02.27 13:15
 
I need help with a sound file problem.

I have an indicator that uses the Playsound command to use alert2.wav. But when an alert is triggered it uses alert.wav instead and all other alerts use alert.wav also.

If I untick Tools/Options/Events Enable then alert2.wav works but all other alerts do not make a sound.

What have I done wrong?

MQL4 Build 950
avatar
Moderator
3416
GumRai 2016.02.27 13:33 #
 
If you have a pop-up alert  followed by a playsound in your code, the sound willl not be played so you only hear the sound for the pop-up alert. You will need to code a small break in between to hear the playsound
avatar
10
Barcode 2016.02.27 23:23 #
 
GumRai:
If you have a pop-up alert  followed by a playsound in your code, the sound willl not be played so you only hear the sound for the pop-up alert. You will need to code a small break in between to hear the playsound
Thanks GumRai I'll give that a try.
Back to topics list  

To add comments, please log in or register