Venkatesh V

Venkatesh V

  • NA
  • 7
  • 0

Capture KeyPress events in a game

Jan 31 2011 6:46 AM
Hello all,

I am a beginner in C# and am currently writing a small program. This program would launch a game and wait in the back ground till the game is closed. While the game is running, the application has to perform certain functions whenever a specific key(F11) is pressed.

I am not able to figure out a way in which i could capture the keystroke when the game is running. I also want to find out how I can get the game resolution whenever F11 is hit. Could someone help me. 

Thanks in advance.

Answers (8)