Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. while (true)
  2. {
  3. if (GetKeyState(0x01) == 0 || (GetKeyState(0x01) == 1))
  4. {
  5. HWND hWnd = FindWindowA(0, "Window"); //Getting HWND to game
  6. PostMessage(hWnd, WM_LBUTTONDOWN, 0, MAKELPARAM(btn.x, btn.y)); //LButton Down
  7. PostMessage(hWnd, WM_LBUTTONUP, 0, MAKELPARAM(btn.x, btn.y)); //LButton Up
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement