Try using ::SendMessage(hWndActive,WM_CHAR,nCharCode,nData);


If nData is between 1 and 15, it is the number of repeats of the character

(see the help on WM_CHAR for the other values).