I have a string of values, and I want to simulate key press events in a window for each character.
I plan on sending WM_KEYDOWN, WM_CHAR, and WM_KEYUP events to the
The general solution is to use the SendMessage WinAPI function. This link describes SendMessage's signature and provides a sample import.
SendMessage
Oh and, to map VK codes you should use MapVirtualKey - its best to assume the mapping is arbitrary and not logical.