Advertisement
Guest User

Untitled

a guest
Sep 27th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.28 KB | None | 0 0
  1. var ip: LPINPUT
  2. #ip.itype = INPUT_KEYBOARD
  3. ip.u1.ki.wScan = 0; # hardware scan code for key
  4. ip.u1.ki.time = 0;
  5. ip.u1.ki.dwExtraInfo = 0;
  6.  
  7. ip.u1.ki.wVk = 0x41; # virtual-key code for the "a" key
  8. ip.u1.ki.dwFlags = 0; # 0 for key press
  9. SendInput(1.UINT, ip, sizeof(INPUT).int32);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement