[Source Code]Possible Menu Drag!

Posts 1–15 of 19 · Page 1 of 2
[Source Code]Possible Menu Drag!
You need to define menux, menuy, width, and height! In you globals

Add to you globals
[PHP]POINT dragPos, dragOffset;
bool dragging=false;[/PHP]

//DEFINE
[PHP]bool isMouseinRegion(int x1, int y1, int x2, int y2)
{
POINT cPos;
GetCursorPos(&cPos);
if(cPos.x > x1 && cPos.x < x2 && cPos.y > y1 && cPos.y < y2){
return true;
} else {
return false;
}
}[/PHP]


Put this were you put your hacks or were your menu is being built!

[PHP]if((dragging && GetAsyncKeyState(VK_LBUTTON)<0) || (GetAsyncKeyState(VK_LBUTTON)&1)){
GetCursorPos(&dragPos);
//ScreenToClient(GetForegroundWindow(),&dragPos);
//You can choose to include this or not.
if (!dragging){
if (isMouseinRegion(menux,menuy,menux+width,menuy+wha tever)){
if (!Menu.MenuClick(menux, menuy, width, dragPos)) {
//^^ if inside the bounds of the window
//then setup the winodow so that it will drag
dragOffset.x = dragPos.x-menux;
dragOffset.y = dragPos.y-menuy;
dragging = true;
Directx.DrawString( 10, 50, D3DCOLOR_ARGB(255, 255, 0,0), Directx.pFont, "start drag");
}
}
}else{//if we are dragging a window then
menux = dragPos.x - dragOffset.x;
menuy = dragPos.y - dragOffset.y;
Directx.DrawString( 10, 50, D3DCOLOR_ARGB(255, 255, 0,0), Directx.pFont, "Dragging...");
}
}else{
dragging = false;
Directx.DrawString( 10, 50, D3DCOLOR_ARGB(255, 255, 0,0), Directx.pFont, "Drag stopped");
}

[/PHP]
work without bypass?
You cannot patch this function for z8 games isn't worried about that. Its a simple function in your hack. if your hack works this should as well!
can you please show me how this look like full!? that it work! and pm me please!
Quote Originally Posted by GER-Domi. View Post
can you please show me how this look like full!? that it work! and pm me please!
Just copy the code's and paste to visual c++.
Quote Originally Posted by [DropDown] View Post
Just copy the code's and paste to visual c++.
C&P dont work!
Quote Originally Posted by GER-Domi. View Post
C&P dont work!
Try visual basic or use notepad++ (may notepad donta work)

Quote Originally Posted by GER-Domi. View Post
C&P dont work!
Try visual basic or use notepad++ (may notepad dont work)
It doesn't seem like anyone in this section can code.
As i said earlier " You need to define menux, menuy, width, and height! In you globals"
So you cannot copy and paste this you need to put the information of your menu hack into this!
WoW!
Great tópic!
==Thanked==
Quote Originally Posted by gustavo5066 View Post
WoW!
Great tópic!
==Thanked==
Your Welcome! IDC about thanks, i just want more knowledgeable people in this section!
can you make a video please
Quote Originally Posted by jhefrey View Post
can you make a video please
Are you that stupid? Do you even have a working menu?
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?