• Log in or sign up for an account here: https://www.sythe.org/login

[Need Help] C++: Colour Clicker

tofurocks

Iloveroy
Joined
Nov 8, 2008
Sythe Gold
0
Messages
2,344
Location
BC, Canada
I can't find a way to move the move over a specific colour or pixel in C++. I know the language fairly well, I'm still a bit of a beginner, I've been using
setcursorpos() for some things but it's useless for cheating on games where the objects move (counter-strike aimbot, monster clicker, etc.) Anyone know how I can make a better clicker?
 
Le Monkey
PHP Shit Show 2k26
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
Code:
bool FindColor(long color, int XS, int YS, int XF, int YF)
{
	HDC dc1;
	int x,y;
	//bool found = false;
	dc1 = GetDC(NULL);
	for(y = YS; y < YF; y++){
		for(x = XS; x < XF; x++){
			if(GetPixel(dc1,x,y)==color){
				SetCursorPos(x,y);
				return true;
			}
		}
	}
	return false;
}
Be warned, though, this method is very slow.
 
Runescape Gamblingrunescape gambling
Back
Top