Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1059
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Alert() blocks PlaySound()
what needs to be fixed here?
Or here
If you read this
Forum on trading, automated trading systems & strategy testing
Any questions from newbies on MQL4 and MQL5, help and discussion of algorithms and codes
Artyom Trishkin, 2020.01.29 10:08
PlaySound() with empty name stops playback of the currently playing sound.
and think about it, something could be done. I guess...
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
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...
...
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.
It doesn't matter. I've written it all down. Think of it as some sort of sound.
...
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
That's the question, how do we get Alert to not stop PlaySound
Swap
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 AlertTried 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 AlertIt's not a replacement - MB doesn't work in indicators as it stops the thread until the button is pressed!
This is not a replacement - MB does not work in indicators as it stops the flow until the button is pressed!