DebateFort - Where Warriors Come To Debate
RAGECRY - Funny, Amusing, Interesting, Trending & Viral Videos and Images
GameOrc - Free Flash Games Online
Results 1 to 3 of 3
  1. #1
    Advanced Member
    MPGH Member
    Jasperdepasper's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    C:\MPGH<3\Jasperdepasper™
    Posts
    234
    Reputation
    17
    Thanks
    105
    My Mood
    Fine

    Smile External Crosshair

    I also added the source if you want to edit the colors or key

    Virusscans:
    External Crosshair.rar - Jotti's malware scan
    VirusTotal - Free Online Virus, Malware and URL Scanner

    Screenshots:



    Instructions:
    -Run the Crosshair(The Crosshair flickers a litle bit.)
    -Choose how big you want the Crosshair
    -Run Project Blackout in windowed mode
    -Press 0 to enable/disable(Its a litle buggy.)
    -Enjoy!!

    Note:
    I dont now if it works for any windows or bit just post here if it dont works

    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);
        }
    }
    <b>Downloadable Files</b> Downloadable Files
    Jasperdepasper™
    MPGH<3


    Code:
          _                              _                                      
         |M|                            | |                                     
         |P| __ _ ___ _ __   ___ _ __ __| | ___ _ __   __ _ ___ _ __   ___ _ __ 
     _   |G|/ _` / __| '_ \ / _ \ '__/ _` |/ _ \ '_ \ / _` / __| '_ \ / _ \ '__|
    |☺|__|H| (_| \__ \ |_) |  __/ | | (_| |  __/ |_) | (_| \__ \ |_) |  __/ |   
     \MPGH/ \__,_|___/ .__/ \___|_|  \__,_|\___| .__/ \__,_|___/ .__/ \___|_|©  
                     | |                       | |             | |              
                     |_|                       |_|             |_|
    Code:
     __  __ _____   _____ _    _ 
    |Ja\/sp|erdep\ /asper|!|  |!|
    |M\☺☺/M|M|__)☺|L|  __|M|__|M|
    |P|\/|P|P LOL/|O| |!L|P ☺☺ P|
    |G|  |G|G|    |L|__|O|G|  |G|
    |H|  |H|H|     \MPGHL|H|  |H

  2. The Following 5 Users Say Thank You to Jasperdepasper For This Useful Post:

    arca316 (12-28-2012), dhilah (07-08-2011), flex73 (08-20-2012), kafilee (08-14-2011), kakiba5 (02-22-2013)

  3. #2
    Banned
    BANNED!
    Rasta's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Russian Federation
    Posts
    1,376
    Reputation
    122
    Thanks
    1,060
    Nice thanks for the source :P .... does any one have a tutorial on how to make Crosshair with toggle menu in DLL file ?
    Last edited by Rasta; 03-17-2011 at 01:15 PM.

  4. #3
    I'm back.
    Former Staff
    MPGH Member
    Scruffy's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Florida
    Posts
    6,523
    Reputation
    344
    Thanks
    1,165
    My Mood
    Dead
    Try to iron out all the glitches and bugs.
    Inter arma enim silent leges

    I will not conform to the conventions of this institution.


    Gifts
    Czar [x][x]
    Liz [x][x]