Hey there,
I am trying to write an alarm that will sound continuously when a condition has been met. The only time that it will stop, is when the user will turn it off. Now, writing the part with the continuous alarm is easy, but my trouble is: How do you allow user interaction to stop the alarm from sounding. Of course disabling the indicator is not a solution. I have searched everywhere and I have not been able to find code anywhere that allows user interaction to stop a process such as an alarm.
Could anyone please help me? I really did not think this would be so difficult.
Thanks!
I am trying to write an alarm that will sound continuously when a condition has been met. The only time that it will stop, is when the user will turn it off. Now, writing the part with the continuous alarm is easy, but my trouble is: How do you allow user interaction to stop the alarm from sounding. Of course disabling the indicator is not a solution. I have searched everywhere and I have not been able to find code anywhere that allows user interaction to stop a process such as an alarm.
Could anyone please help me? I really did not think this would be so difficult.
Thanks!