Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1059

 
MakarFX:

Alert() blocks PlaySound()

what needs to be fixed here?

Or here

If you read this

and think about it, something could be done. I guess...

 
Artyom Trishkin:

If you read this

and think about it, something could be done. I guess so...

I don't need to stop, I need PlaySound() to play the sound, but it's interrupted by Alert

 
MakarFX:

I don't need to stop, I need PlaySound() to play the sound, but it's interrupted by Alert

...

Because the Alert is assigned to either an empty sound or some sound ...

If empty, then the currently playing sound will be stopped.
If any sound, then the currently playing sound will be stopped and the one assigned to Alert will start playing.

Some conclusion can be drawn from this...

 
Artyom Trishkin:

...

Because an alert is assigned to an empty sound...

From this we can draw a certain conclusion...

There's not an empty sound, there's 1sec of silence.
 
MakarFX:
There's not an empty sound, there's 1sec of silence.

It doesn't matter. I've written it all down. Think of it as some sort of sound.

 
Artyom Trishkin:

...

If there is a sound, the sound currently playing will be stopped and the one assigned to Alert will start playing.

That's the question, how to make Alert not stop PlaySound

 
MakarFX:

That's the question, how do we get Alert to not stop PlaySound

Swap

 
Artyom Trishkin:

Swap places.

Tried it, didn't help.

Now looking through your articles https://www.mql5.com/ru/articles/7071#node00

Can you tell me where MessageBox is described?

I want to replace Alert
Библиотека для простого и быстрого создания программ для MetaTrader (Часть XVI): События коллекции символов
Библиотека для простого и быстрого создания программ для MetaTrader (Часть XVI): События коллекции символов
  • www.mql5.com
Ранее, при создании объекта-аккаунта и коллекции аккаунтов в части 12, а далее и для отслеживания событий текущего аккаунта в части 13 описания библиотеки, у нас определился сам собою новый для библиотеки тип объектов, отправляющих свои события в базовый объект Engine. Принципы отслеживания событий аккаунта отличаются от принципов отслеживания...
 
MakarFX:

Tried it, didn't help.

Now looking at your articles https://www.mql5.com/ru/articles/7071#node00

Can you tell me where MessageBox is described

I want to replace Alert

It's not a replacement - MB doesn't work in indicators as it stops the thread until the button is pressed!

 
Igor Zakharov:

This is not a replacement - MB does not work in indicators as it stops the flow until the button is pressed!

Got it, thanks.
Reason: