This works:
stop=0
repeat
if inkey()<>""
stop=1
endif
until stop=1
But that's basicly the same as what Blueznl put in his first post...
A loop like this doesn't really seem to cost any computing power, but that could be because of my P4.
P4 2.4GHz, 256 MB, WinXP Pro, onboard video&audio.
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
Yeah, I could've done that, but the process had used about 0 seconds of CPU-time after a minute (according to the window that pops up on XP when you press CRTL-ALT-DELETE), so I figured it wasn't necessary.
P4 2.4GHz, 256 MB, WinXP Pro, onboard video&audio.
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."