Trying to find a way to have an Alert("") as well as a PlaySound() within the one indicator. I read elsewhere, that it is only possible if you have some time between the Alert and PlaySound.
I have no programming skills, only programme assembly skills from code found elsewhere...
This was my non-working attempt below:
int cnt=GetTickCount();
Alert("The Message and Data that You Want");
while (GetTickCount() < cnt+500) //for 5 seconds after alert try to do this
{
PlaySound("Trade_On_EURUSD.wav");
GetTickCount();
}
Has any got any ideas please?
Thank you in advance...
P.S
Second thought was... Disabling all event sounds found in "Tools", "Options", "Events", then seeing if PlaySound() works then if the code read
Alert("");
PlaySound("Trade_On_EURUSD.wav");
This also did not work.
I have no programming skills, only programme assembly skills from code found elsewhere...
This was my non-working attempt below:
int cnt=GetTickCount();
Alert("The Message and Data that You Want");
while (GetTickCount() < cnt+500) //for 5 seconds after alert try to do this
{
PlaySound("Trade_On_EURUSD.wav");
GetTickCount();
}
Has any got any ideas please?
Thank you in advance...
P.S
Second thought was... Disabling all event sounds found in "Tools", "Options", "Events", then seeing if PlaySound() works then if the code read
Alert("");
PlaySound("Trade_On_EURUSD.wav");
This also did not work.