WaitKey problemBlitzPlus Forums/BlitzPlus Beginners Area/WaitKey problem
| Hello, my struggles with this 'simple' language continue. Want to write a simple command line test program that waits for a keypress. It does not work:|
Print "Press a key"
If I do this in a graphics windows, it does work. (ie. Graphics 640, 480)...
| That's because without a window or a graphics mode there is nothing to accept the waitkey event.|
Just create a little window offscreen if you need to.
| OK, thanks. |
| How to resolve it ?|
How to create a litter window offscreen???
put codes please, thanks.
Print "Press a key" Graphics 0,0,0,2 WaitKey Print "done" End
As I hope you can tell, WaitKey is useless for the console. And the console is only good for simple input and print statements.
| Above codes don't work. |
| It does in B+, but not B3D. At least on my computer... |