Sign in to follow this  
Followers 0
qwqwwqwdwd

IS THERE A WAY?

8 posts in this topic

#1 ·  Posted (edited)

is there a way not by dectectin pixel but by dectecting the object that look almost the same?and also can i dectect more than 1 pixel?if anyone know please help me out. thx

Edited by qwqwwqwdwd

Share this post


Link to post
Share on other sites



Well, I believe the closest function would be PixelCheckSum(). Look it up in the Helpfile


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

so can u dectect more than 1 pixel?

Share this post


Link to post
Share on other sites

PixelCheckSum basically see's if an area on the screen changed, to quote the helpfile:

A checksum only allows you to see if "something" has changed in a region - it does not tell you exactly what has changed.

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

Short example:

;This will click at 320, 482 if the specified region has changed
$checksum = PixelChecksum(352,251,394,291)
While $checksum = PixelChecksum(352,251,394,291)
    Sleep(20)
WEnd
MouseClick("left", 320, 482)

Gotta go,

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

I got a tip for you.. What about making a more descriptive topic-title for once ?

"Is there a way ?" To do what ? "I need help with a script !" Well, duh...this is a support-forum

for a script-language. "I need a answer !" Again, this is a support-forum. "Help !" Wah...that's

deep man !

so can u dectect more than 1 pixel?

Why the need for us to quote the helpfile ? Just hit the helpfile, find the suggested function

and read it's description on the very first line.... "Generates a checksum for a region of pixels."

You glow of laziness. Even your nick is probably a result of randomly pressing the keys on your

keyboard, due to the lack of creativity.

edit : fantastic typos

Edited by Helge

Share this post


Link to post
Share on other sites

I got a tip for you.. What about making a more descriptive topic-title for once ?

"Is there a way ?" To do what ? "I need help with a script !" Well, duh...this is a support-forum

for a script-language. "I need a answer !" Again, this is a support-forum. "Help !" Wah...that's

deep man !

Why the need for us to quote the helpfile ? Just hit the helpfile, find the suggested function

and read it's description on the very first line.... "Generates a checksum for a region of pixels."

You glow of laziness. Even your nick is probably a result of randomly pressing the keys on your

keyboard, due to the lack of creativity.

edit : fantastic typos

:) Classic :D

[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

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