I have a dialog based application that sends keystrokes to another application. I want to be able to kill the execution of this keystroke sending function very easily. In the ideal case I think that I want to kill it by hitting the escape key once.
The method that I tried was to get a key obtained from the overridden PreTranslateMessage to set an application variable from zero to one. I then check this variable in the keystroke loop. If the variable is set, I simply return from the function containing this loop. I am not sure why this is not working.
100% Accurate Display Screen OCR http://www.OCR4Screen.com