Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The program only wants to run once . . .
#9
The _DELAY 2 isn't a very reliable way to try and get a keypress into the keyboard buffer.   Start up times vary, so if the screen is initialing and you hit that space bar, it may not register it.  

Instead of just k = _KEYHIT, trap for a key event and then move on.

DO
    k = _KEYHIT
LOOP UNTIL k


If you want to include it in a timer, then try something like:

t# = TIMER + 2.0  <-- 2 seconds
DO 
   k = _KEYHIT
LOOP UNTIL k OR (TIMER > t#)

Is this a Linux only issue?  I can't seem to reproduce it at all, on my Win 11 machine.
Reply


Messages In This Thread
RE: The program only wants to run once . . . - by SMcNeill - 07-31-2024, 12:07 AM



Users browsing this thread: 6 Guest(s)