add me
mcazeck@hotmail.com
Title is self explanatory.
I'm looking to make a dragging menu but confused on the math to make it so where ever the user clicks is where it drags from. Currently it moves the mouse to the corner of the menu being dragged.
add me
mcazeck@hotmail.com
Definitions:
Code:POINT cPos; int menuX = 20, menuY = 100, offsetX, offsetY;Code:if(GetAsyncKeyState(VK_LBUTTON) < 0) { GetCursorPos(&cPos); if(cPos.x > menuX - 10 && cPos.x < menuX + 125 && cPos.y > menuY - 10 && cPos.y < menuY + 455){ if(!isDragging){ offsetX = cPos.x - menuX; offsetY = cPos.y - menuY; isDragging = true; } } } else { isDragging = false; } } if(isDragging){ menuX = cPos.x - offsetX; menuY = cPos.y - offsetY; }
No I do not make game hacks anymore, please stop asking.
-Dimensions- (07-21-2011)
CAFlames (07-22-2011)
use it:
Code:if (YOURFKHACK == 1) { if(GetAsyncKeyState(VK_LBUTTON) < 0) { GetCursorPos(&cPos); if(cPos.x > menuX - 10 && cPos.x < menuX + 125 && cPos.y > menuY - 10 && cPos.y < menuY + 455){ if(!isDragging){ offsetX = cPos.x - menuX; offsetY = cPos.y - menuY; isDragging = true; } } } else { isDragging = false; } } if(isDragging){ menuX = cPos.x - offsetX; menuY = cPos.y - offsetY; }
flameswor10 (07-23-2011)
No I do not make game hacks anymore, please stop asking.
flameswor10 (07-23-2011)
flameswor. i feel like that was taken from my base from forever ago?
AFffffffffffffffFFFFFFFFFFFFFFFFFFFfffffffffffffff fffffffff dragging code is oldddddddddddddddddddddddddd
Last edited by Crash; 07-25-2011 at 09:14 AM.
i use the left righ tup and down buttons to move my menu
mine is simple to me hold alt+direction arrow= move menu