I need to simulate UP arrow key, so i used sendinput, i saw on
https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx UP arrow key is 0x26, but the problem is that the program simulate the press of "L" and no up arrow key, why?
Here is the code:
INPUT ip;
ip.type = INPUT_KEYBOARD;
ip.ki.time = 0;
ip.ki.wVk = 0;
ip.ki.dwExtraInfo = 0;
ip.ki.dwFlags = KEYEVENTF_SCANCODE;
ip.ki.wScan =0x26; //UP ARROW key
SendInput(1, &ip, sizeof(INPUT));
ip.ki.dwFlags = KEYEVENTF_SCANCODE | KEYEVENTF_KEYUP;
SendInput(1, &ip, sizeof(INPUT));