mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-02 11:36:22 +01:00
use MapVirtualKey
This commit is contained in:
parent
d95d827c8e
commit
6253af16c8
@ -397,7 +397,7 @@ void ui_send_key(WORD keycode, DWORD flags)
|
||||
INPUT input[1] = {0};
|
||||
input[0].type = INPUT_KEYBOARD;
|
||||
input[0].ki.time = 0;
|
||||
input[0].ki.wScan = 0;
|
||||
input[0].ki.wScan = MapVirtualKey(keycode, MAPVK_VK_TO_VSC);
|
||||
input[0].ki.dwExtraInfo = 0;
|
||||
input[0].ki.wVk = keycode;
|
||||
input[0].ki.dwFlags = flags;
|
||||
|
Loading…
Reference in New Issue
Block a user