My program lags the computer because i have it going through a while loop to continue check if a condition is true. Is there any way i can have a wait for user input such as pressing a key to perform the evaluation.
Or is there any way to have nothing running and as soon as the condition evaluates to true it will do what i want? Like when you click a button on a form, nothing happens and its in wait mode untill that specific action happens and then it jumps into a method. Can i have something such as comparison conditioning to true and be noticed without having to constantly check it and then it would take me into a method such as a button click?
Id rather the second one, but if not possible the first will do just as good.