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 


How do you make a pixel based bot?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Oct 07, 2008 12:00 am    Post subject: Reply with quote

Hieroglyphics wrote:
What?


you wish you, it's directed at little miss kitterz.
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Tue Oct 07, 2008 7:53 pm    Post subject: Reply with quote

slovach wrote:
Hieroglyphics wrote:
What?


you wish you, it's directed at little miss kitterz.


Hmmm. I just saw my stupidity in finding the dc over and over again. =p

And that's Mr. Kitterz to you

_________________
Back to top
View user's profile Send private message Send e-mail
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Oct 07, 2008 10:01 pm    Post subject: Reply with quote

Also, you can use the RGB macro for the sake of simplicity instead of the 3 other color macros.

COLORREF col = GetPixel(dc, where, ever);
if(col == RGB(170, 170, 17)){
blah blah.
}
Back to top
View user's profile Send private message
Hieroglyphics
I post too much
Reputation: 0

Joined: 06 Dec 2007
Posts: 2007
Location: Your bedroom

PostPosted: Wed Oct 08, 2008 8:19 am    Post subject: Reply with quote

I was thinking, if R < G && R < B
_________________

Back to top
View user's profile Send private message AIM Address MSN Messenger
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Wed Oct 08, 2008 8:49 am    Post subject: Reply with quote

If the type of red changes because the hp bar is slightly transparent or whatever, you might want to try something like:
if( (red > 220) && (green < 30) && (blue < 30) )

When I tried something similar for the game flyff (which always has a slightly transparant hp bar), I just took the color of like 10 points on the hp bar with a different background all the time, and then compare those. Then I found something like: When there's hp the red is always between 200 and 240, the green is between 10 and 30 and blue was always around 40 I beleive. So then I just compared it to those values and it worked quite well.
Back to top
View user's profile Send private message
Hieroglyphics
I post too much
Reputation: 0

Joined: 06 Dec 2007
Posts: 2007
Location: Your bedroom

PostPosted: Wed Oct 08, 2008 8:57 am    Post subject: Reply with quote

Thanks, that helped a lot, now I have to figure this out in delphi :\ I find coding these kind of things much easier in C++, except PostMessage and GUIs I find easier with delphi :\ Pointers and memory editing is easier in C++ too
_________________

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: Wed Oct 08, 2008 9:46 am    Post subject: Reply with quote

Hieroglyphics wrote:
Thanks, that helped a lot, now I have to figure this out in delphi :\ I find coding these kind of things much easier in C++, except PostMessage and GUIs I find easier with delphi :\ Pointers and memory editing is easier in C++ too


ResEdit will make your life much easier
Back to top
View user's profile Send private message
Hieroglyphics
I post too much
Reputation: 0

Joined: 06 Dec 2007
Posts: 2007
Location: Your bedroom

PostPosted: Wed Oct 08, 2008 5:02 pm    Post subject: Reply with quote

Not really, I have a cracked Microsoft Visual Studio so that part is no problem, it's just wierd hard to explain Borland C++ however is easy for GUIs but I need an account
_________________

Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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