Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void events::moveItemStack(const int x, const int y, const int newx, const int newy){
- SendMessage(hWnd, WM_SYSKEYDOWN, VK_CONTROL, 0); // Press down CTRL (windows.h)
- Sleep(100);
- SendMessage(hWnd, WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(x, y-20)); // Left mouseclick down (windows.h)
- Sleep(100);
- SendMessage(hWnd, WM_LBUTTONUP, MK_LBUTTON, MAKELPARAM(newx, newy-20)); // left mouseclick up (windows.h)
- Sleep(100);
- SendMessage(hWnd, WM_SYSKEYUP, VK_CONTROL, 1); // Let go of CTRL (windows.h)
- Sleep(100);
- }
Advertisement
Add Comment
Please, Sign In to add comment