SendInput () para teclado - apenas maiúsculas
Bem engraçado. Eu só perguntei há alguns minutos aquiSendInput () para teclado - apenas minúsculas, como enviar letras maiúsculas. A solução foi enviar o turno antes da carta. Mas depois de mudar de turno eu não posso desligá-lo ...
Eu estou tentando muito com sinalizador KEYEVENTF_KEYUP como este:
INPUT Input = { 0 };
Input.type = INPUT_KEYBOARD;
Input.mi.dwFlags = KEYEVENTF_EXTENDEDKEY;
Input.ki.wVk = VK_LSHIFT;
SendInput( 1, &Input, sizeof( INPUT ) );
Input.type = INPUT_KEYBOARD;
Input.mi.dwFlags = KEYEVENTF_EXTENDEDKEY;
Input.ki.wVk = 'A';
SendInput( 1, &Input, sizeof( INPUT ) );
Input.type = INPUT_KEYBOARD;
Input.mi.dwFlags = KEYEVENTF_KEYUP | KEYEVENTF_EXTENDEDKEY;
Input.ki.wVk = VK_LSHIFT;
SendInput( 1, &Input, sizeof( INPUT ) );
Input.type = INPUT_KEYBOARD;
Input.mi.dwFlags = KEYEVENTF_EXTENDEDKEY;
Input.ki.wVk = 'A';
SendInput( 1, &Input, sizeof( INPUT ) );
mas parece não funcionar de todo. Ele sempre envia AA.
Obrigado.