01-12-2023, 01:39 AM
(01-12-2023, 01:31 AM)DSMan195276 Wrote: @kernelpanic I think I might have figured it out, it happens for me if I hold the F5 key a bit too long. If that's what's happening then I think the issue is that because I fixed the startup delay your program reaches the end basically immediately after starting. That by itself is perfectly fine, but if you're still holding the F5 key at that point then it will be picked up as input by the console and exit your program.
I would test and see if the issue still happens if you manually click the Run button, that would avoid the chance of sending any input to the console for your program. Also you could see if it still happens if you hit the F5 key as briefly as you can (though that might be hard. Maybe your computer is a bit faster then ours or something ).
Assuming that's the problem it might be worth us adding a workaround for it, we could have the IDE wait for you to release the F5 key before starting the program.
Glitching from running too fast? I guess that's always a possibility!
After the LOCATE, and before the END, add in these lines:
_DELAY 2
_KEYCLEAR
That'll make certain that you have time to get your hands off the F5 keys, before that END condition pops up wanting you to "Press any key to continue".