Sign in to follow this  
Followers 0
liquid x

Identifying text on a transparent background

7 posts in this topic

#1 ·  Posted (edited)

I'm a newbie to autoit, I've previously been using QM2 but finding it lacking in features essential to game macroing..

AutoIt seems alot better, and I'd like to get into it instead.

I'm curious if something like this would be possible:

A game I'm playing has a window which is slightly transparent, omni-present on screen. It displays a list of things nearby the player.

What I'd like to do is be able to scan that list for specific pre-defined entries, and perform an action if they are found.

All the text is the same color, same font.. but the background is tinted grey and I cannot make it solid.

I can actually make the rest of the UI solid instead of transparent, but it won't let me make that window solid.. I'm guessing to make it harder for macroers.

If I didn't explain that well enough let me know.. I'm not sure how to explain it better.

Edited by liquid x

Share this post


Link to post
Share on other sites



Try using the AutoInfo Tool that comes with AuotIt, and see if the text you are wanting is readable, if so you can use options like ControlGetText().


[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

Try using the AutoInfo Tool that comes with AuotIt, and see if the text you are wanting is readable, if so you can use options like ControlGetText().

Unfortunately it's not, it seems like the game uses entirely it's own control system. I had this same prob using QM2..

I've been able to do quite a few things just by searching for pixels or checking the color of a pixel at a certain location.. but I don't know how I could make that work with this list box.

Share this post


Link to post
Share on other sites

You may need to make your own OCR with pixelchecksum(), or maybe you'd be able to just use pixelchecksum if the words are always the same.


[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

#5 ·  Posted (edited)

You may need to make your own OCR with pixelchecksum(), or maybe you'd be able to just use pixelchecksum if the words are always the same.

The text (that I'm searching for) is always the same.. same font, size, color, text..

But the problem with using something like pixelchecksum is that as I said the background behind the text is transparent.. so two checksums won't match even with the same text, as the game scenery behind the text changes =(

It it not 100% transparent, it is about 60% opaque.

Edited by liquid x

Share this post


Link to post
Share on other sites

So.. not really possible?

Share this post


Link to post
Share on other sites

So.. not really possible?

sounds like your own OCR is the way to go... do a search for OCR and you'll find a few that were made for diablo that you may be able to tailor to your needs.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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