i hope someone can help me
yeah i have the program visual studio and i try to make a hack it isn`s a problem to hack a flashgame but with APB
the codes i don`t know them and i doesn`t know how can i begin
i hope someone can help me
If it was that simple, everyone would do it...
yeah here is my writing file when i try to oping it stand there "source files is not compiled"
first part :#include "APB"
std::string chosencolour;
void Mainscan/scancontens scan)
void checkcolour(colorref pixel, int x, int y)
bool colourmatch(colorref pixel),
{
std::string gamewindows;
std::cout << "enter game windows to triggerbot" << std::endl;
//std::getline(std::cin,gamewindow;
gamewindow = "APB";
HWND appwnd = findwindow(0, gamewindow.c_str()),
RECT rcClientpositioning;
while(!appwnd)
{
system(cls);
appwnd = findwindow(0, gamewindow.c_str());
std::cout <<"lokking for " << gamewindow << std::endl;
sleep(1000);
}
std::cout << "found " << gamewindow << std::endl;
while(atoi(chosencolour.c_str()) < 1 || atoi(chosencolour.c_str())
{
system("CLS");
std::cout <<"choose which color to trigger against\n" <<
<< std::endl;
std::getline(std::cin, chosencolour);
}
std::string color;
if (chosencolour =="1"color = "red";
else if (chosencolour == "2")color = "Green";
else if (chosencolour == "3")color = "Blue";
system("cls");
std::cout << "triggerbot online, hover over" << color << "to shoot..." << std::endl;
GetwindowRECT(appwnd, &rcClientpositoning);
HDC hdcmain = GetDC(HWND_DESKTOP);
int startingx = rcclientpositioning.right - ((rcclientpositioning.left)2);
int startingy = rcclientpositioning.bottom - ((rcclientpositioning.bottom.top)/2);
scancontents scan(startingx, startingy , hdcmain, 30, 40, -30,;
Mainscan()scan;
system("pause");
}
void Mainscan(scancontents scan)
{
int debugruntime = clock();
while(true)
{
for(int y = scan.startY+scan.deducty; y < scan.startY+scan.compareY; y++)
{
for(int x =scan.startx+scan.deductx; x < scan.startY+scan.compareY; x++)
{
// sleep(100);
//setcursorpos(x, y);
checkcolour(getpixel(scan.hdc, x, y), x, y)
if/getAsynckeystate(vk_delete))
{
exit(0);
}
}
}
}
void checkcolour(colorref pixel, int x, int y)
{
//if(colourMatch(pixel))
{
mouse_event(mouseeventf_leftdown; x, y, 0, 0;
mouse_event(mouseeventf_leftup, x, y, 0, 0;
}
}
bool ccolourmatch(colorref pixel)
{
int r = getRvalue(pixel);
int g = getGvalue(pixel);
int b = getBvalue(pixel);
//red
if(chosencolour == "1")
{
if(r > 50&& g < 40 && b < 40)
{
return true;
}
}
//green
else if(chosencolour == "2")
{
if(r > 40&& g > 50 && b < 40)
{
return true;
}
}
//blue
else if(chosencolour == "3")
{
if(r < 50&& g < 40 && b > 50)
{
return true;
}
return false;
}
}
and the 2st:
#include <windows.h>
#include <iostream>
#include <ctime>
#include <string>
class scanContents
{
public:
int startx;
int startY;
int Deductx;
int deducty;
int comparex;
int comparey;
HDC hdc;
scancontents(
int startx, int starty, HDC hdc, int comparex = 0,
int compareY = 0, int deductx = 0, int deducty = 0)
{
startx = startx;
starty = starty;
comparex = comaprex;
comaprey = comaprey;
deductx = deduct x;
deducty = deducty;
HDC = HDC;
}
i try to make a triggerbot with esp
yeah
the only problem is that when i test the writing file from me stand there"source files is not compiled"