(06-07-2023, 04:23 AM)CharlieJV Wrote: Some things need to be done to get the programming running correctly. Compatibility problems with things BAM does not support 100% (like SLEEP with no value.)
RE: SLEEP without a value:
If INKEY$ works on this system like in QB64:
Code: (Select All)
DO : LOOP UNTIL INKEY$ = ""
DO : LOOP WHILE INKEY$ = ""
In QB64 would have to insert a _LIMIT executed by the second loop, otherwise it would hog the CPU.
That code snippet could be put inside a subprogram, and that subprogram's name used in place of "standalone" SLEEP.
EDIT: probably you mean the keypress should be retained after it's processed. That is harder to emulate, might have to depend on a variable that holds the last return from INKEY$, and make sure that it comes from what should have been "standalone" SLEEP.