Hai.
Dis is for use with your model chams in D3D. Make sure its a distinguishable color like Red, Blue, Green, or Yellow. I've commented it to show you how it works, but it's pretty self explanatory. You can remove the comments and use this as you please.. just don't say it's your own for some dumb reason.
VOID TriggerBot()
{
COLORREF cPixel;
HWND opfWindow;
HDC opfDC;
opfWindow = GetForegroundWindow( );
opfDC = GetDC( opfWindow );
int x, y;
for(x=BaseInfo.ScreenCenterX-2; x <= BaseInfo.ScreenCenterX+2; x++)
{
for(y=BaseInfo.ScreenCenterY-2;y <= BaseInfo.ScreenCenterY+2; y++)
{
cPixel = GetPixel( opfDC, x, y );
// Red = >=200, <50, <50; Blue = <50, <50, >=200; Green = <50, >=200, <50
// Yellow Chams
if(GetRValue(cPixel)>= 150
&& GetGValue(cPixel)>= 125
&& GetBValue(cPixel) < 50)
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, NULL, NULL); // Simulate click
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, NULL, NULL);
}
} // End X loop
} // End Y Loop
}
Ok. Basically get an RGB Scanner, find what your chams color is and replace. To increase detection radius change the 2 to a higher value. Right now it only scans 4 pixels at the center but that's good enough for a trigger bot.
Sry for the dbl post btw.