Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. chrknudsen

    Can't get GetASyncKeyState to work in console application.

    I've decided to try to use ReadConsoleInput() instead, so that my game will also run in Win98. I want to read the InputEvents into a buffer array that will contain 128 events, as in the below C code snippet I found on the web: INPUT_RECORD irInBuf[128]; if (! ReadConsoleInput(...
  2. chrknudsen

    Can't get GetASyncKeyState to work in console application.

    I just think it's odd that such basic functions as GetASyncKeyState and GetKeyState can't work in Windows98. If anybody else on these boards have a chance to test my code in Win98, please do so! :-)
  3. chrknudsen

    Can't get GetASyncKeyState to work in console application.

    Well, I've now tested the compiled code on a WindowsXP machine and it works as intended. So now I know that it's my computer and not my copy of Delphi that's malfunctioning. I wonder if it's because I'm using Win98?
  4. chrknudsen

    Hiding the mouse cursor in fullscreen consoles?

    Is it possible to hide the mouse block cursor in a console when it is fullscreen (Alt+Enter)? I know of the ShowCursor(False), but that only hides the mouse cursor when the console is a window, and also hides the mouse even if it is outside the console window, so that's not what I'm looking for.
  5. chrknudsen

    Can't get GetASyncKeyState to work in console application.

    I of course meant to say that I've made similar tests with GetKeyState... :-) Also, I'm using Delphi 7 Second Edition v7.2
  6. chrknudsen

    Can't get GetASyncKeyState to work in console application.

    Thanks for the replies! :o) I'm using Windows 98. As to what I expect of the code, I expect it to do exactly what it did when you ran it in 2K. However, as I wrote in my initial post, when I compile and run the program, my console window freezes and doesn't react to keypresses. I've also made...
  7. chrknudsen

    Can't get GetASyncKeyState to work in console application.

    I'm fairly new to Delphi (though I've been programming in Pascal for some time) and to get to know it better, I've decided to make a small console game. The game should basically move a character across the screen according to keypressed up, down, left and right. You have to be able to press...

Part and Inventory Search

Back
Top