CrossHair TUTORIAL

Posts 115 of 17 · Page 1 of 2
CrossHair TUTORIAL
How To make You First CrossHair hack
This Tutorial will show you how to make begginer , crosshair hack . The program am using is called Visual Studio C++ [2010] , you can download 30day trial .
The SourceCode am using is not made by me , its made by some other guy am just using it to show you guys how to use SourceCodes [ if you know this dont post any crap comments ]
thanks .
{ i will include the source code here ]
This CrossHair only works in Window Mode
Works for any Game :P
Press Numpad0 to turn it on / off

TUTORIAL IS MADE BY ME


VIDEO :


Source Code :
Code:
#include <windows.h>
#include <iostream>
#include <math.h>
using namespace std;

bool crosshairon=false;
HDC ragedc = NULL;
int crosshairsize=0;
int cx=0;
int cy=0;

void CrossThread(void)
{
    while(1)
    {
        if(GetAsyncKeyState(VK_NUMPAD0)&1)
        {
            crosshairon=!crosshairon;
            ragedc = GetDC(HWND_DESKTOP);
            cx=GetSystemMetrics(SM_CXSCREEN)/2-((crosshairsize-1)/2);
            cy=GetSystemMetrics(SM_CYSCREEN)/2-((crosshairsize-1)/2);
        }
        Sleep(1);
    }
}

int main()
{
    cout<<"Crosshair size in pixels:\n";
    cin>>crosshairsize;
    if(crosshairsize%2==0)
    {
        crosshairsize+=1; 
    }
    system("cls"); 
    cout<<"Press numpad0 to toggle the crosshair on and off\n";
    CreateThread(0,0,(LPTHREAD_START_ROUTINE)CrossThread,0,0,0);
    while(1)
    {
        if(crosshairon==true)
        {
            for(int i=0;i<crosshairsize;i++)
            {
                SetPixel(ragedc, cx+i, cy+((crosshairsize-1)/2), RGB(255,0,0));
                SetPixel(ragedc, cx+((crosshairsize-1)/2), cy+i, RGB(0,0,255));
            }

            if(crosshairon==false)
        
            for(int i=1;i<crosshairsize;i++)
            {
                SetPixel(ragedc, cx+i, cy+((crosshairsize-1)/2), RGB(0,0,0));
                SetPixel(ragedc, cx+((crosshairsize-1)/2), cy+i, RGB(0,0,0));
            }
        }
        Sleep(33);
    }
}
looks nice tnx for the toturail!!
thanks
Nice Job, Do you know how to make the debug of the VS to work?
"Dieses Video enthält Content von UMG. Es ist in deinem Land nicht verfügbar"

Remove ur music, or i wont be able to see the vid.
But how start AVA in Windows Mode please?
Thank You But I Don't Like Your CH Style It's Very Big I Want One Like m_t_h
@hack08
I want Know Too
I installed C++ And i need a registration key, why? >.>
So.. I did that, now wheres the dll to inject that ?
Too lazy to try it...
thanks .. i need it
Can you post a video again? Or can you help, I have Visual C++ 2010 Express and I don't know what kind of file to make it as. Windows Forms Application? PLEASE HELP!
Thanks that helped me ALOT Thanks!!
Why the Video doesn't work?!?!?
Posts 115 of 17 · Page 1 of 2
This thread is closed for replies.

Tags for this Thread

None

Need help?