How to stop Notifications.PlaySound();

Created at 13 Apr 2021, 11:36
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
IM

imrealfighter

Joined 09.11.2020

How to stop Notifications.PlaySound();
13 Apr 2021, 11:36


Hi There Everyone.

In the past I used to ask about how do we create our alert if price reaches a levels that we define.

and the answer is using Notifications.PlaySound(); which works. !!

 

but now I have a problem which is how to turn it off ?

because if we use Notifications.PlaySound(); the only way I know that could stop the sound is to stop the cBot program which is not ideal I think.

is there any method or class to stop it's sound without close the program
 
Thank you in advance.


@imrealfighter