Jump to content

Comparing In-Game Items Without PixelChecksum() (Pictures Included)


Recommended Posts

Ok I posted a little about this earlier but the topic sort of changed. So now, my question is how do I compare a given field of pixels in order to determine when the crafting process initiated by the macro is complete.

I need to find out when this:

Posted Image

turns into this:

Posted Image

It moves up sequentially so I need to compare 24, 25, 26 and so on and so on until it looks like a 35. Make sense?

I also need to test to make sure certain items will work properly. If they DO work properly, their text is green, otherwise, it is white.

So, I need to make sure the item looks like this:

Posted Image

and not like this:

Posted Image

When tested, these items are in the same place and all background and surrounding imagery in the immediate area stays EXACTLY the same.

Also, You can't just compare a pixel color . . . because there's no way to click specific enough to guarantee that you will click a green pixel. The cursor is a weird circle with some shape in the middle.

Any ideas?

Link to comment
Share on other sites

The thing is, that would work for MY setup but I need this to function for my entire guild (the one's I'm writing this for.) Also, the colored text won't always be the same so it needs to be versatile. With that said, maybe what you suggested will work? I don't know.

Can you explain a little more or point me towards a tutorial of some sort?

Edited by Styles2304
Link to comment
Share on other sites

The thing is, that would work for MY setup but I need this to function for my entire guild (the one's I'm writing this for.) Also, the colored text won't always be the same so it needs to be versatile. With that said, maybe what you suggested will work? I don't know.

Can you explain a little more or point me towards a tutorial of some sort?

Start the game.

Record the colors on the specific spots.

Keep checking periodically.

When the color is changed, it's time to do what you want to do.

It should work on any PC. If positions are different due to different desktop sizes, than do pre measurements and check the locations relevant to a given PC's screen resolution.

Looks to me like a giant Select groupping if you have many things to check.

Link to comment
Share on other sites

What I don't understand is what is meant by "Record the colors on the specific spots" Like take a screen shot and do it that way or what? And what I mean by it might not work for everyone is that the items are located in different spots on every computer.

Can someone explain this like I'm a two year or show me enough code that I can understand what you guys are talking about?

Link to comment
Share on other sites

spesific spot is 1 pixel for example, search for PixelGetColor in the help file

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

the bigger problem is distinguishing between the numbers. How can I make PixelGetColor work for that?

If im not mistaking you cant. The simplest thing I can recommend is: lets say you are looking for nr 3 , the nr 3 is clored in blue ( lets say its blue ). now you can look for lets say 6-7 ...blue pixels inside that nr. 3 & outside of nr. 3 for lets say 3 not blue pixels, because nr 3 resembles nr 8 its hard to determine what nr is what othervise

was this explained understandable.?

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

Yeah . . . that makes sense . . . so is there any way period to distinguish between numbers that don't change color? I'm gonna mess with that and see if I can't get it to work for the dud items (it should if I understand correctly) and I'll post back with an update.

Thanks for all the help so far.

Link to comment
Share on other sites

Look at the picture, if all White colored pixels on this picture are Black its Nr 3.

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...