Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using inkey
#4
Have a look at INPUT.BAS code (a library to simulate INPUT)

ardentcrest Wrote:This could be of help. for other parts of my program
But I dont think its what I'm looking for.

I want to type in a line of text while other things are happening.
Then you might want to store the value of INKEY$. INKEY does not lock your program execution:
Code:
myLine = ""
row = 0

LOOP1:
  DO_THING 1
  K$ = INKEY$
  IF K$ = CHR$(13) THEN ' Enter
    LET row = row + 1
    myLine = ""
  END IF
PRINT AT row, 0; MyLine$;: REM add ; "_"; to have a cursor
GOTO LOOP1
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)