Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Someone compile this for me.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
AwayTheWInd
Master Cheater
Reputation: 0

Joined: 11 Sep 2007
Posts: 450

PostPosted: Mon Apr 07, 2008 2:33 pm    Post subject: Someone compile this for me. Reply with quote

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;
}

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites