Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void sendKey(HWND hWnd, int vKey, int msKeyDown) {
- UINT mappedKey = MapVirtualKey((UINT)vKey, MAPVK_VSC_TO_VK);
- LPARAM lParam = ((mappedKey << 16) | 1);
- PostMessage(hWnd, WM_KEYDOWN,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement