Have a question about alerts.

 

I've been able to successfully create my own alerts recently but I want both an alert and a

playsound at the same time. Problem is when I do this only the alert fires or the sound

is cut off to play only a small portion of the orginal sound. Any ideas for a solution for this would be appricated.

Currently my code's look something like this: (i know the if statement is incorrect it's an example).

If (my alarm condition) {Alert("Alert Fired!!! "); Symbol(); PlaySound("customsound.wav");}

if I remove my alert the sound plays correctly. This is happening to me in every alert I try

to create this way. What am I doing wrong here?

 
Perhaps you could use Sleep() between Alert and PlaySound?
 
england33:

if I remove my alert the sound plays correctly. This is happening to me in every alert I try

to create this way. What am I doing wrong here?

You could change the default sound associated with an Alert, or disable it . . . Tools > Options > Events
 
ok let me try those suggestions. thanks for the help!
Reason: