Frage zu Keycodes
-
Hallo wieso wird das Ü nicht geschrieben ?
char a = 0x9A ;
cout << a ;keybd_event( 0x9A, 0, // Ü KEYEVENTF_EXTENDEDKEY | 0, 0 );
-
Mit SendInput wird mir der Umlaut auch nicht ausgeben mit 0x41 ( für ein a ) klappt es.
#include <windows> #include <iostream> using namespace std; int main(int argc, char* argv[]) { Sleep(1000); INPUT InputData; int iEvents; InputData.type = INPUT_KEYBOARD; InputData.ki.wVk = 0x94; iEvents = SendInput ( 1 , &InputData , sizeof(InputData) ); return 0; }
-
Weiss keiner wie man ein ö als oder ü als Tastendruck simulieren kann ?

-
schon mal mit
KEYBDINPUT.dwFlags = KEYEVENTF_UNICODE KEYBDINPUT.wScan = 'ä' KEYBDINPUT.wVk=0 KEYBDINPUT.time=0versucht?
-
Funktioniert auch nicht das ä wird einfach nicht geschrieben

Ich bekomme hier immer nur ein ? ausgeben

#include <windows> #include <iostream> using namespace std; int main(int argc, char* argv[]) { Sleep(1000); INPUT InputData; int iEvents; InputData.ki.dwFlags = KEYEVENTF_UNICODE; InputData.ki.wScan = 'ä'; InputData.type = INPUT_KEYBOARD; InputData.ki.wVk = 0; iEvents = SendInput ( 1 , &InputData , sizeof(InputData) ); return 0; }
-
http://msdn.microsoft.com/en-us/library/ms646271(VS.85).aspx schrieb:
KEYEVENTF_UNICODE - If specified, the system synthesizes a VK_PACKET keystroke. The wVk parameter must be zero. This flag can only be combined with the KEYEVENTF_KEYUP flag.