Any body knows how to detect all the controls in a window including button controls, input controls and other menus in any windows. I am trying to develop a tool for GUI Automation.
You need to first get the ASCII values for the keys I recomend that you code a simple loop that ask you to enter a key and you print the ASCII value out. Then use #define to set the values to keys. ie #define ESC 27 and getch() to check whether a key was pressed.