Sign in to follow this  
Followers 0
Joekak

Recognizing numbers?

7 posts in this topic

Hi.. I'm not too advanced with AutoIt so excuse if there is a simple answer for this.

Basically, the game is showing a list of numbers. There can be one number and sometimes there can be fifteen numbers on particular part of the screen im searching. The highest number's color on the screen is FF0000, and the lowest number is 0000FF. So if there are only two numbers, one will be FF0000 and the other will be 0000FF; if there are ten numbers, one will be FF0000, nine will be everywhere inbetween, and the lowest will be 0000FF.

My problem, I guess, is that I don't know how to do a general search for numbers with the text color always changing. I wanted the macro to search for an exact number, 81, but I'm not sure how to do a search for it since it's almost always a different color. Any suggestions on how to do this?? Because I'm completely lost :)

Share this post


Link to post
Share on other sites



Are these "numbers" just ordinary text? Can this be copy/pasted from there to Notepad?


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

Hi.. I'm not too advanced with AutoIt so excuse if there is a simple answer for this.

Basically, the game is showing a list of numbers. There can be one number and sometimes there can be fifteen numbers on particular part of the screen im searching. The highest number's color on the screen is FF0000, and the lowest number is 0000FF. So if there are only two numbers, one will be FF0000 and the other will be 0000FF; if there are ten numbers, one will be FF0000, nine will be everywhere inbetween, and the lowest will be 0000FF.

My problem, I guess, is that I don't know how to do a general search for numbers with the text color always changing. I wanted the macro to search for an exact number, 81, but I'm not sure how to do a search for it since it's almost always a different color. Any suggestions on how to do this?? Because I'm completely lost :)

Do we get to know the applications name so maybe we can see for ourselves what you are actually talking about, since you have no code and no screen shot?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

The application is a game, SWGClient and I have no code because I haven't started anything yet. I have no idea where to begin. If the numbers were consistently one color it would be simple enough with pixel search, but the color code changes every 15-20 seconds.

Share this post


Link to post
Share on other sites

The application is a game, SWGClient and I have no code because I haven't started anything yet. I have no idea where to begin. If the numbers were consistently one color it would be simple enough with pixel search, but the color code changes every 15-20 seconds.

Do you at least have a .bmp of the actual number (just a scaled sized one that shows the numbers with the background).

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Why didn't I have an edit button like one minute ago :)

Here is what the numbers look like

Posted Image

They are solid with no shading, and fairly big. When I know the color of the letter, it's easy enough to find an "81". I'm just not sure how to find it when it can be any other fifty different colors?

Edited by Joekak

Share this post


Link to post
Share on other sites

IF you have the time to make an array of 900 elements.There's still a way.

Every position has a 0%~100%,plus all of them equal to 900.make a big array has 900 element of checksum and unique color.you'll have a way.

Start to collect it from now on before you have a better idea,if you really wanna win.

Share this post


Link to post
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
Sign in to follow this  
Followers 0