Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true)
- {
- if (GetKeyState(0x01) == 0 || (GetKeyState(0x01) == 1))
- {
- HWND hWnd = FindWindowA(0, "Window"); //Getting HWND to game
- PostMessage(hWnd, WM_LBUTTONDOWN, 0, MAKELPARAM(btn.x, btn.y)); //LButton Down
- PostMessage(hWnd, WM_LBUTTONUP, 0, MAKELPARAM(btn.x, btn.y)); //LButton Up
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement