Re: Visual C++ General Extended ascii char set
Lamefif
[code]
keybd_event(VkKeyScan('a'),1,0 , 0); // ¡®A¡¯ Press
keybd_event(VkKeyScan('a'),1, KEYEVENTF_KEYUP,0); // ¡®A¡¯ Release[/code]
this works, i.e the application (notepad) in focus gets an a typed.
[code]
keybd_event(VkKeyScan('e'),1,0 , 0); // ¡®A¡¯ Press
keybd_event(VkKeyScan('e'),1, KEYEVENTF_KEYUP,0); // ¡®A¡¯ Release[/code]
this does not, i dont get any errors or anything. nothing happens.
iv also tried:
[code]
INPUT input[2];
memset(input, 0, sizeof(input));
input[0].type = INPUT_KEYBOARD;
input[0].ki.wVk = -126; // ASCI value of A
input[0].ki.dwFlags = 0;
input[0].ki.time = 0;
input[0].ki.dwExtraInfo = 0;
input[1].ki.wVk = -126; // ASCI value of A
input[1].ki.dwFlags = KEYEVENTF_KEYUP;
input[1].ki.time = 0;
input[1].ki.dwExtraInfo = 0;
SendInput(2,input,sizeof(INPUT));
[/code]
negative numbers for the extended ascii char's, i've also tried hex equivalent of the ascii number.
now im looking up the SendMessage(), but i dont know what it can do. i have not written a win32 app before.
thank you