I have following code:
INPUT Input = { 0 };
Input.type = INPUT_KEYBOARD;
Input.mi.dwFlags = KEYEVENTF_EXTENDEDKEY;
Input.ki.wVk = 'A'; // tried 0x41, ( UCHAR )VkKeyScan( 'A' )
SendInput( 1, &Input, sizeof( INPUT ) );
but it generates me only ‘a’. How to force it to generate upper case as well?
Thanks.
EDIT: some modifications according to rodrigo answer in comments.
EDIT: here is another code with an example of turning caps/shift off after sending letter:
explanation here (I hope the explanation is correct): SendInput() for keyboard – only uppercase