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 


[c++] Hovering mouse to a color?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Engineer
Expert Cheater
Reputation: 1

Joined: 25 Nov 2007
Posts: 170

PostPosted: Wed Jul 16, 2008 5:01 am    Post subject: [c++] Hovering mouse to a color? Reply with quote

[Title here]
How do I do that?
Back to top
View user's profile Send private message
jackyyll
Expert Cheater
Reputation: 0

Joined: 28 Jan 2008
Posts: 143
Location: here

PostPosted: Wed Jul 16, 2008 8:50 am    Post subject: Reply with quote

What do you mean hovering it to a color? Like changing the color of the mouse cursor?
Back to top
View user's profile Send private message AIM Address MSN Messenger
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Wed Jul 16, 2008 10:04 am    Post subject: Reply with quote

I think he means like an aimbot or something.
GetPixel, SetCursorPos

_________________
Back to top
View user's profile Send private message
Engineer
Expert Cheater
Reputation: 1

Joined: 25 Nov 2007
Posts: 170

PostPosted: Wed Jul 16, 2008 10:06 am    Post subject: Reply with quote

HalfPrime wrote:
I think he means like an aimbot or something.
GetPixel, SetCursorPos

Yep. Thanks
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Jul 16, 2008 10:12 am    Post subject: Reply with quote

Only problem is GetPixel requires x and y coordinates. And if you can specify that then there's no point and you may as well just use SetCursorPos. But seeing as aimbots are for FPS games I want to assume that the color will be varying in its location, which is a problem.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Engineer
Expert Cheater
Reputation: 1

Joined: 25 Nov 2007
Posts: 170

PostPosted: Wed Jul 16, 2008 10:44 am    Post subject: Reply with quote

oib111 wrote:
Only problem is GetPixel requires x and y coordinates. And if you can specify that then there's no point and you may as well just use SetCursorPos. But seeing as aimbots are for FPS games I want to assume that the color will be varying in its location, which is a problem.

Confused Isn't there any way to do it with RGB's?
Back to top
View user's profile Send private message
jackyyll
Expert Cheater
Reputation: 0

Joined: 28 Jan 2008
Posts: 143
Location: here

PostPosted: Wed Jul 16, 2008 11:00 am    Post subject: Reply with quote

Could use GetPixel on every pixel til you find the right color, but that's both slow and dumb. Pixels aren't a great way to do much though.
Back to top
View user's profile Send private message AIM Address MSN Messenger
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Sat Jul 19, 2008 2:59 pm    Post subject: Reply with quote

This finds the xy of the mouse point....uses a + 5 byte bypass....so itll work and bypass GG.
Back to top
View user's profile Send private message Send e-mail
shadoninja
Master Cheater
Reputation: 0

Joined: 10 Aug 2007
Posts: 376

PostPosted: Sat Jul 19, 2008 6:46 pm    Post subject: Reply with quote

Couldn't there be a way to make your mouse lock on the color AFTER you find it yourself?

That would work just as well (If you have half-decent aim) and takes a chunk out of the code


I have seen plenty of aimbots for CSS where it changes the player models heads to bright red
Back to top
View user's profile Send private message
jackyyll
Expert Cheater
Reputation: 0

Joined: 28 Jan 2008
Posts: 143
Location: here

PostPosted: Sat Jul 19, 2008 7:01 pm    Post subject: Reply with quote

Code:

BOOL SetCursorPos(     
    int X,
    int Y
);


http://msdn.microsoft.com/en-us/library/ms648394
Back to top
View user's profile Send private message AIM Address MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Jul 20, 2008 1:11 am    Post subject: Reply with quote

shadoninja wrote:
Couldn't there be a way to make your mouse lock on the color AFTER you find it yourself?

That would work just as well (If you have half-decent aim) and takes a chunk out of the code


I have seen plenty of aimbots for CSS where it changes the player models heads to bright red


It's probably all done by hooking the renderer. Changing the skins would get you kicked for being an unpure client.
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