C
C#10mo ago
sterbuk

How can I play a song in a c# console?

I found it but how can I make so it stops when I type "stop"?
4 Replies
Arpit Sirohi
Arpit Sirohi10mo ago
some sort of if condition with character matching to stop ?
sterbuk
sterbukOP10mo ago
Its alright Do you know how to make a timer by any chance?
Arpit Sirohi
Arpit Sirohi10mo ago
I think you can also use a simple timer for this if there is a time duration . Just use the System.Timer system create an object timer = new System.Timers.Timer() ; and after the interval you can just reset the timer and exit
sterbuk
sterbukOP10mo ago
I got it thank you though
Want results from more Discord servers?
Add your server