Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



MyImageSearch with tolerance.

Discussion on MyImageSearch with tolerance. within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
fuso98's Avatar
 
elite*gold: 428
Join Date: Dec 2011
Posts: 2,722
Received Thanks: 2,035
MyImageSearch with tolerance.

As someone know myImageSearch.au3 UDF allow the programmer to search ALL images that are on a region of 800x600. But this UDF not have a tolerance for search images. How can i add tolerance (or shade variation)?
There's another UDF that allow me to do the same?
fuso98 is offline  
Old 11/05/2013, 19:08   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
You could get the checksum of the area and compare it with the image you have.
The difference between the two values is the tolerance you want.
Code:
PixelChecksum
This command gets only the pixels you have on screen.
For the file you should use GDI+.
alpines is offline  
Old 11/05/2013, 19:11   #3
 
fuso98's Avatar
 
elite*gold: 428
Join Date: Dec 2011
Posts: 2,722
Received Thanks: 2,035
I don't need to know what tolerance i need to use. I need to implement tolerance in MyImageSearch.au3. Because this UDF don't have this parameter. Does someone know how to do it?
fuso98 is offline  
Old 11/05/2013, 19:31   #4
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
I told you how to do that. Ignoring my answer doesn't help you.
alpines is offline  
Old 11/05/2013, 19:58   #5
 
fuso98's Avatar
 
elite*gold: 428
Join Date: Dec 2011
Posts: 2,722
Received Thanks: 2,035
Quote:
Originally Posted by alpines View Post
I told you how to do that. Ignoring my answer doesn't help you.
Sorry, i did't read good your answer.
Btw, i don't know how to use well GDI+ what function you think i need to use?
fuso98 is offline  
Old 11/05/2013, 20:42   #6
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
You could get the Checksum on screen with PixelChecksum and the file with opening or displaying it with and get the checksum from it too.
alpines is offline  
Old 11/05/2013, 21:54   #7
 
fuso98's Avatar
 
elite*gold: 428
Join Date: Dec 2011
Posts: 2,722
Received Thanks: 2,035
I need to make a bot, so i can't use SpashImageOn.
fuso98 is offline  
Reply


Similar Threads Similar Threads
Check the nearest coord with MyImagesearch
10/24/2013 - AutoIt - 1 Replies
With MyImageSearch i can check how many images are on the screen. It return a 2D array. How can i check the nearest coord to the center of my screen? I know that i need a For..to..Next Loop but can some one give me an example?



All times are GMT +1. The time now is 12:36.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.