| View previous topic :: View next topic |
| Author |
Message |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Oct 07, 2008 12:00 am Post subject: |
|
|
| Hieroglyphics wrote: | | What? |
you wish you, it's directed at little miss kitterz. |
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Tue Oct 07, 2008 7:53 pm Post subject: |
|
|
| 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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Oct 07, 2008 10:01 pm Post subject: |
|
|
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 |
|
 |
Hieroglyphics I post too much
Reputation: 0
Joined: 06 Dec 2007 Posts: 2007 Location: Your bedroom
|
Posted: Wed Oct 08, 2008 8:19 am Post subject: |
|
|
I was thinking, if R < G && R < B _________________
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Wed Oct 08, 2008 8:49 am Post subject: |
|
|
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 |
|
 |
Hieroglyphics I post too much
Reputation: 0
Joined: 06 Dec 2007 Posts: 2007 Location: Your bedroom
|
Posted: Wed Oct 08, 2008 8:57 am Post subject: |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Oct 08, 2008 9:46 am Post subject: |
|
|
| 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 |
|
 |
Hieroglyphics I post too much
Reputation: 0
Joined: 06 Dec 2007 Posts: 2007 Location: Your bedroom
|
Posted: Wed Oct 08, 2008 5:02 pm Post subject: |
|
|
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 |
|
 |
|