❓ mouse coordinate for bot

Posts 1–3 of 3 · Page 1 of 1
❓ mouse coordinate for bot
hi community

i have a question i search mouse coordinate for all warrock resolution if you have this please post this on reply
i have 1024x768 but i want all resolution
thank you

i want for you reply bybye warrocker ^^
Code:
void LogPlayerPos(void)
{
DWORD dwPlayerPointer = *(DWORD*) ADR_PLAYERPTR;

if(dwPlayerPointer !=0)
{
char posx[999];
char posy[999];
char posz[999];

sprintf(posx, "Pos X: %.0f ",g_pBase->local->pos1);
sprintf(posy, "Pos Y: %.0f", g_pBase->local->pos2);
sprintf(posz, "Pos Z: %.0f", g_pBase->local->pos3);

RECT PlayerX, PlayerY, PlayerZ;

SetRect(&PlayerX, 100, 150, 100, 150);
SetRect(&PlayerY, 150, 200, 150, 200);
SetRect(&PlayerZ, 300, 350, 300, 350);

pFont->DrawTextA(NULL, posx, -1, &PlayerX, DT_NOCLIP | DT_CENTER, D3DCOLOR_ARGB(255, 255,0, 0));
pFont->DrawTextA(NULL, posy, -1, &PlayerY, DT_NOCLIP | DT_CENTER, D3DCOLOR_ARGB(255, 255, 0, 0));
pFont->DrawTextA(NULL, posz, -1, &PlayerZ, DT_NOCLIP | DT_CENTER, D3DCOLOR_ARGB(255, 255, 0, 0));
}
}

Present:

LogPlayerPos();
Quote Originally Posted by DirecTX_ View Post
Code:
void LogPlayerPos(void)
{
DWORD dwPlayerPointer = *(DWORD*) ADR_PLAYERPTR;

if(dwPlayerPointer !=0)
{
char posx[999];
char posy[999];
char posz[999];

sprintf(posx, "Pos X: %.0f ",g_pBase->local->pos1);
sprintf(posy, "Pos Y: %.0f", g_pBase->local->pos2);
sprintf(posz, "Pos Z: %.0f", g_pBase->local->pos3);

RECT PlayerX, PlayerY, PlayerZ;

SetRect(&PlayerX, 100, 150, 100, 150);
SetRect(&PlayerY, 150, 200, 150, 200);
SetRect(&PlayerZ, 300, 350, 300, 350);

pFont->DrawTextA(NULL, posx, -1, &PlayerX, DT_NOCLIP | DT_CENTER, D3DCOLOR_ARGB(255, 255,0, 0));
pFont->DrawTextA(NULL, posy, -1, &PlayerY, DT_NOCLIP | DT_CENTER, D3DCOLOR_ARGB(255, 255, 0, 0));
pFont->DrawTextA(NULL, posz, -1, &PlayerZ, DT_NOCLIP | DT_CENTER, D3DCOLOR_ARGB(255, 255, 0, 0));
}
}

Present:

LogPlayerPos();
i Think he mean he want Mouse Postion not Player :S .

Code:
			if(MousePostions)
			{
			    POINT cPos;
                                GetCursorPos(&cPos);
				sprintf(CurPos1,"Mouse X: [%d]",cPos.x);// u Could Add this to ur menu if u don't like MsgBox way
                                sprintf(CurPos2,"Mouse Y: [%d]",cPos.y); // u Could Add this to ur menu if u don't like MsgBox way

			        MessageBox (NULL, CurPos1, "Mouse Position X", MB_OK); // Get Postion X on MsgBox
				MessageBox (NULL, CurPos2, "Mouse Position Y", MB_OK); // Get Postion Y on Msg BOx

			}

Credits  : RedLine ( Source ) , Alex_Angel ( Told me about way ) , Guy who found this way oO idk .
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us