AwayTheWInd Master Cheater
Reputation: 0
Joined: 11 Sep 2007 Posts: 450
|
Posted: Mon Apr 07, 2008 2:33 pm Post subject: Someone compile this for me. |
|
|
OK... i know the topic seems retarded but my C++ is screwed.
compile this code in C++ for me. a Win32 Dynamic Link Library.
PM me the DLL when its compiled or post it.
//This is 0aixBot made by AwayTheWind
#include <stdafx.h>
#define WIN32_LEAN_AND_MEAN
#include <math.h>
#include <stdio.h>
#include <windows.h>
#pragma comment(linker, "/ENTRY:DllMain")
BOOL bExit = FALSE;
double A = 15.0;
double WF = 0.0;
double WA = 1.0;
double D = 1.0;
double S1;
double S2;
double S3;
HWND hGunBound;
DWORD WINAPI MonitorHotKeys()
{
while( !bExit )
{
if( GetAsyncKeyState( 0x31 )&1 )
{
A = A + 5.0;
if ( A == 90.0 )
A = 90.0;
char buffer [256];
sprintf(buffer,"Angle = %g",A);
MessageBoxA(hGunBound,buffer,"Angle",MB_OK);
}
if( GetAsyncKeyState( 0x32 )&1 )
{
A = A - 5.0;
if ( A == 15.0 )
A = 15.0;
char buffer [256];
sprintf(buffer,"Angle = %g",A);
MessageBoxA(hGunBound,buffer,"Angle",MB_OK);
}
if( GetAsyncKeyState( 0x33 )&1 )
{
WF = WF + 1.0;
if ( WF == 26.0 )
WF = 26.0;
char buffer [256];
sprintf(buffer,"Wind = %g",WF);
MessageBoxA(hGunBound,buffer,"Wind",MB_OK);
}
if( GetAsyncKeyState( 0x34 )&1 )
{
WF = WF - 1.0;
if ( WF == 0.0 )
WF = 0.0;
char buffer [256];
sprintf(buffer,"Wind = %g",WF);
MessageBoxA(hGunBound,buffer,"Wind",MB_OK);
}
if( GetAsyncKeyState( 0x35 )&1 )
{
WA = WA + 10.0;
if ( WA == 11.0 )
WA = 10.0;
if ( WA == 360.0 )
WA = 1.0;
char buffer [256];
sprintf(buffer,"Wind Angle = %g",WA);
MessageBoxA(hGunBound,buffer,"Wind Angle",MB_OK);
}
if( GetAsyncKeyState( 0x36 )&1 )
{
WA = WA - 10.0;
if ( WA < 1.0 )
WA = 350.0;
if ( WA = 0.0 )
WA = 1.0;
char buffer [256];
sprintf(buffer,"Wind Angle = %g",WA);
MessageBoxA(hGunBound,buffer,"Wind Angle",MB_OK);
}
if( GetAsyncKeyState( 0x37 )&1 )
{
D = D + 0.5;
if ( D == 27.0 )
D = 27.0;
char buffer [256];
sprintf(buffer,"Distance = %g",D);
MessageBoxA(hGunBound,buffer,"Distance",MB_OK);
}
if( GetAsyncKeyState( 0x38 )&1 )
{
D = D - 0.5;
if ( D == 1.0 )
D = 1.0;
char buffer [256];
sprintf(buffer,"Distance = %g",D);
MessageBoxA(hGunBound,buffer,"Distance",MB_OK);
}
if( GetAsyncKeyState( VK_RBUTTON )&1 )
{
S1 = 2 * A;
S1 = sin(S1);
S2 = sin(WA);
S2 = S2 * WF;
S2 = S2 + 87;
S3 = S2 / 2291.5369;
S3 = S3 / S1;
S3 = S3 * D;
S3 = sqrt(S3);
S3 = S3 * 4;
char buffer [256];
sprintf(buffer,"Power = %g",S3);
MessageBoxA(hGunBound,buffer,"Power",MB_OK);
}
if( GetAsyncKeyState( 0x39 )&1 )
{
D = D * -1.0;
char buffer [256];
sprintf(buffer,"Reversed! Distance Now = %g",D);
MessageBoxA(hGunBound,buffer,"Reversed",MB_OK);
}
}
return 0;
}
BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwMsg, LPVOID lpReserved)
{
UNREFERENCED_PARAMETER( hModule );
UNREFERENCED_PARAMETER( lpReserved );
switch( dwMsg )
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls( hModule );
CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)MonitorHotKeys, NULL, 0, 0 );
return TRUE;
case DLL_PROCESS_DETACH:
bExit = TRUE;
return TRUE;
}
return TRUE;
} _________________
|
|