rHEARTHAErthjethj (06-09-2013)
Hi
Today i want to Learn you How To Make A Cross Hair
Steps:
1: First Download Visual Studio
2: Open C++ Project and Chose Conolse
3:Type This Code:
Code://Www.MA-Programs.Com - Cross Hair // By Mhemmad #include "stadfx.h" #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<<"Www.MA-Programs.Com _ Crosshair size in pixels:\n"; cin>>crosshairsize; if(crosshairsize%2==0) //check if its even { crosshairsize+=1; //if it is add 1 } system("cls"); // clear the console :) cout<<"Www.MA-Programs.Com _ 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(255,0,0)); } } Sleep(1); } }
4: Save you Project
5: Go to Project Folder then Go To Debug or Realase And Copy The File.exe
6: This is the Cross Hair open It and type Cross Hair Size Then Click Enter And Click NumPad0 to Turn it On/Off
For more Help
Add me in Skype : The.H-cker
My E-mail: Mhemmad01@gmail.com
Click Thanks if i Help you
rHEARTHAErthjethj (06-09-2013)
Thank you a lot for this tip or mini tutorial!
Dude you are Missing Stadfx.h . The file Directory .
For the newbies Here the Stadfx.h CodeTuT :Code:#pragma once #define WIN32_LEAN_AND_MEAN #define WIN32_EXTRA_LEAN #include <windows.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <d3d9.h> #include <d3dx9.h> #pragma message("Thanks To Maroon5.")
Create a new Headers File (.h)
rename it as "Stadfx.h"
Paste These code
Done
Last edited by Maroon5.; 06-08-2013 at 08:34 PM.
-User2- (06-12-2013)
Teach me how to use it please
so what is the code all together??
HELLO friend, and to make a tapper with visual basic or visual studio? help
Thank me if I helped you Minecraft Accounts 20 cents each
Minecraft Account Generator