10-03-2022, 11:44 PM
playing with key input because of other posts brought me to this horrible calamity.... the beeping doesn't stop if you press the spacebar/
Why? It stops if you uncomment the _limit command it behaves like I'd expect but otherwise it keeps playing....
I don't understand why this happens.
Yes a _limit inside a loop is sensible .... but should this be expected?
What is _limit actually doing? Why does it work (just reads each key press) with _limit uncommented?
Why? It stops if you uncomment the _limit command it behaves like I'd expect but otherwise it keeps playing....
I don't understand why this happens.
Yes a _limit inside a loop is sensible .... but should this be expected?
Code: (Select All)
Do
If _KeyDown(32) Then Sound 1000, 0.1 'rerally don't press the spacebar you'll be sorry
If _KeyDown(27) Then GoTo exitloop
If _KeyDown(97) Then Print "A";
_Display
'_Limit 60
Loop
exitloop:
What is _limit actually doing? Why does it work (just reads each key press) with _limit uncommented?