SHARE
TWEET

Untitled

a guest May 19th, 2017 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void sendKey(HWND hWnd, int vKey, int msKeyDown) {
  2.     UINT mappedKey =  MapVirtualKey((UINT)vKey, MAPVK_VSC_TO_VK);
  3.     LPARAM lParam = ((mappedKey << 16) | 1);
  4.  
  5.     PostMessage(hWnd, WM_KEYDOWN,
RAW Paste Data
Want to get better at C++?
Learn to code C++ in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top