08-15-2024, 12:06 PM
Short answer: SLEEP is interrupted by timer events.
This is mentioned in passing in the QB45 manual ("the program will stay suspended until ... an enabled event occurs") but appears to be missing from the QB64PE wiki.
You can use _DELAY instead of SLEEP to achieve what you want (though note _DELAY cannot be interrupted by a keypress like SLEEP can).
This is mentioned in passing in the QB45 manual ("the program will stay suspended until ... an enabled event occurs") but appears to be missing from the QB64PE wiki.
You can use _DELAY instead of SLEEP to achieve what you want (though note _DELAY cannot be interrupted by a keypress like SLEEP can).