[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027) [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027) [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027) [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027) I have a problem with INKEY$ and _DELAY - Pete's QBASIC Site
SCREEN _NEWIMAGE(800, 600, 32)
PRINT "Press ENTER to continue."
DO
LOOP UNTIL INKEY$ = CHR$(13)
_DELAY 1
PRINT "Press ENTER again to quit."
DO
LOOP UNTIL INKEY$ = CHR$(13)
in this example you can press enter twice without the second print being displayed but it still ends the application
if you didn't get the problem maybe u can test it out by yourself, THANK YOU IN ADVANCE !!!
SCREEN _NEWIMAGE(800, 600, 32)
PRINT "Press ENTER to continue."
DO
LOOP UNTIL INKEY$ = CHR$(13)
_DELAY 1
PRINT "Press ENTER again to quit."
DO
LOOP UNTIL INKEY$ = CHR$(13)
in this example you can press enter twice without the second print being displayed but it still ends the application
idk if it's a bug or i if i just screwed up but i need some help
if you didn't get the problem maybe u can test it out by yourself, THANK YOU IN ADVANCE !!!
PRINT "Press ENTER to continue."
DO
LOOP UNTIL INKEY$ = CHR$(13)
_DELAY 2
PRINT "Press ENTER again to quit."
DO
PRINT INKEY$;
LOOP UNTIL INKEY$ = CHR$(13)
Press all the keys you want during the delay and see what is printed. SLEEP will keep the keys in the buffer too.
To clear the buffer use: DO UNTIL INKEY$ = "": LOOP
Otherwise an INPUT later may pick up the extra key presses.
PRINT "Press ENTER to continue."
DO
LOOP UNTIL INKEY$ = CHR$(13)
_DELAY 2
PRINT "Press ENTER again to quit."
DO
PRINT INKEY$;
LOOP UNTIL INKEY$ = CHR$(13)
Press all the keys you want during the delay and see what is printed. SLEEP will keep the keys in the buffer too.
To clear the buffer use: DO UNTIL INKEY$ = "": LOOP
Otherwise an INPUT later may pick up the extra key presses.
this solved my problem, thank you!
btw I found _KEYCLEAR command and I think it's easier to use it than what you taught me ty again