This doesn't work on my windows 7 system,It used to.
PRINT "Hit me", 100, 100
SHOWSCREEN
KEYWAIT
PRINT "OK", 100, 100
SHOWSCREEN
KEYWAIT
It's from the manual.
Works fine on my win 7, what is happening on your end?
edit: my current glb is 14.106, so it could be it.
weeeeeeird
I have reinstalled GBL 14.371,It still doesn't work.
really weird.
It just doesn't seem to be reading the keyhit.
After i press a key i cannot quit the program with the window close icon and it crashes whereas this works as normal before i press a key.
Confirm, also on my computer with GLB 14.371 KEYWAIT don't work.
ciao
Qedo
Update,
in GLBasic version 11.559 & 12.656 KEYWAIT work!
Thanks for the back up Quedo.Nice to know i haven't gone mad or are being stupid etc etc. :good:
KEYWAIT if you aske me, its some such of a debug command, that should not been used in a normal code, but more when doing debug thing. Its can halt the app in a unconsern way, mostly on mobiles.
But you can do easy workaround the issue by using KEY() events in a function. Im do not checked the issue yet.
But hopefully this debug command is got fixed, its can been handy in some cases of course (im even used it my self in that way me thinks).
Yeah SF i only use it for quick code checks but just thought i should mention it,Odd that is ok on some systems
.
It was ok my system with glb14.106.
Havent checked the latest yet
Fixed in V15. Sorry for that.