Sign in to follow this  
Followers 0
KnowNothing

Find an image within image?

8 posts in this topic

#1 ·  Posted (edited)

Is there a way to find an image somewhere within a 300x800 area? With out knowing its x,y’s?

I’m trying to make a pick-it based on an items stats but I can’t seem to get OCR working (I don’t have ms office). So I’m going try to make screen shots of all wanted stats and hope it’ll work.

The items stats looks like this:

Posted Image

Lets say I want to keep any item with enhanced effect.

(hopefully I'd be able to weed out low +#'s)

Posted Image

Can auto find the stat if it's in a random spot within that 300x800 area? If so please point me to what I need to know.

Edited by KnowNothing

Share this post


Link to post
Share on other sites



Bump.

Anyone know?

Share this post


Link to post
Share on other sites

Bumpy.

Does no one know or do I smell?

Share this post


Link to post
Share on other sites

I've looked over both of them and I think link 2 "Finding a picture/bmp/sprite on the screen, A newbie's attempt." would be easier for me to use/understand.

But I can't find the BMP.au3 I need it to make the the array of pixels to search for.

Thxs for your help.

Share this post


Link to post
Share on other sites

Er I can't seem to get it working right.

I got the pixels to search for and i don't get any errors but it never finds it.

I open the enhanced effect image in ms paint and move it like so:

Posted Image

enhanced effect image used:

Posted Image <- it was a bmp...imagshack changed it

I then run this script and maximize ms paint:

#include<pixelsearchpic.au3>
Sleep(2000);time to let you click over to the autoit homepage.
findpic()

Func findpic()
    $now = TimerInit()
    Local $picture[92][10]
$picture[0][0] = 0xEBF7EF
$picture[0][1] = 0xEBF7EF
$picture[0][2] = 0xEBF700
$picture[0][3] = 0xEBF7EF
$picture[0][4] = 0xEBF7EF
$picture[0][5] = 0xEBF7EF
$picture[0][6] = 0xEBF7EF
$picture[0][7] = 0xEBF7EF
$picture[0][8] = 0xEBF700
$picture[0][9] = 0xEBF700
$picture[1][0] = 0xEBF7EF
$picture[1][1] = 0x0000EF
$picture[1][2] = 0x0000EF
$picture[1][3] = 0x0000EF
$picture[1][4] = 0x0000EF
$picture[1][5] = 0x0000EF
$picture[1][6] = 0x0000EF
$picture[1][7] = 0x0000EF
$picture[1][8] = 0x0000EF
$picture[1][9] = 0x0000EF
$picture[2][0] = 0xEBF7EF
$picture[2][1] = 0x000000
$picture[2][2] = 0xEBF700
$picture[2][3] = 0xEBF700
$picture[2][4] = 0xEBF700
$picture[2][5] = 0x000000
$picture[2][6] = 0xEBF700
$picture[2][7] = 0xEBF700
$picture[2][8] = 0xEBF700
$picture[2][9] = 0x000000
$picture[3][0] = 0xEBF7EF
$picture[3][1] = 0x000000
$picture[3][2] = 0xEBF7EF
$picture[3][3] = 0xEBF7EF
$picture[3][4] = 0xEBF7EF
$picture[3][5] = 0x000000
$picture[3][6] = 0xEBF7EF
$picture[3][7] = 0xEBF7EF
$picture[3][8] = 0xEBF7EF
$picture[3][9] = 0x000000
$picture[4][0] = 0xEBF7EF
$picture[4][1] = 0x000000
$picture[4][2] = 0xEBF7EF
$picture[4][3] = 0xEBF7EF
$picture[4][4] = 0xEBF7EF
$picture[4][5] = 0x000000
$picture[4][6] = 0xEBF7EF
$picture[4][7] = 0xEBF7EF
$picture[4][8] = 0xEBF7EF
$picture[4][9] = 0x000000
$picture[5][0] = 0xEBF7EF
$picture[5][1] = 0x000000
$picture[5][2] = 0xEBF7EF
$picture[5][3] = 0xEBF7EF
$picture[5][4] = 0xEBF7EF
$picture[5][5] = 0x000000
$picture[5][6] = 0xEBF7EF
$picture[5][7] = 0xEBF7EF
$picture[5][8] = 0xEBF7EF
$picture[5][9] = 0x000000
$picture[6][0] = 0xEBF7EF
$picture[6][1] = 0x000000
$picture[6][2] = 0xEBF7EF
$picture[6][3] = 0xEBF7EF
$picture[6][4] = 0xEBF7EF
$picture[6][5] = 0x000000
$picture[6][6] = 0xEBF7EF
$picture[6][7] = 0xEBF7EF
$picture[6][8] = 0xEBF7EF
$picture[6][9] = 0x000000
$picture[7][0] = 0xEBF7EF
$picture[7][1] = 0xEBF700
$picture[7][2] = 0xEBF7EF
$picture[7][3] = 0xEBF7EF
$picture[7][4] = 0xEBF7EF
$picture[7][5] = 0xEBF700
$picture[7][6] = 0xEBF7EF
$picture[7][7] = 0xEBF7EF
$picture[7][8] = 0xEBF7EF
$picture[7][9] = 0xEBF700
$picture[8][0] = 0xEBF7EF
$picture[8][1] = 0xEBF7EF
$picture[8][2] = 0xEBF7EF
$picture[8][3] = 0x0000EF
$picture[8][4] = 0x0000EF
$picture[8][5] = 0x0000EF
$picture[8][6] = 0x0000EF
$picture[8][7] = 0x0000EF
$picture[8][8] = 0x0000EF
$picture[8][9] = 0x0000EF
$picture[9][0] = 0xEBF7EF
$picture[9][1] = 0xEBF7EF
$picture[9][2] = 0xEBF7EF
$picture[9][3] = 0xEBF700
$picture[9][4] = 0x000000
$picture[9][5] = 0xEBF700
$picture[9][6] = 0xEBF700
$picture[9][7] = 0xEBF700
$picture[9][8] = 0xEBF700
$picture[9][9] = 0xEBF700
$picture[10][0] = 0xEBF7EF
$picture[10][1] = 0xEBF7EF
$picture[10][2] = 0xEBF7EF
$picture[10][3] = 0x0000EF
$picture[10][4] = 0xEBF700
$picture[10][5] = 0xEBF7EF
$picture[10][6] = 0xEBF7EF
$picture[10][7] = 0xEBF7EF
$picture[10][8] = 0xEBF7EF
$picture[10][9] = 0xEBF7EF
$picture[11][0] = 0xEBF7EF
$picture[11][1] = 0xEBF7EF
$picture[11][2] = 0xEBF7EF
$picture[11][3] = 0x000000
$picture[11][4] = 0xEBF7EF
$picture[11][5] = 0xEBF7EF
$picture[11][6] = 0xEBF7EF
$picture[11][7] = 0xEBF7EF
$picture[11][8] = 0xEBF7EF
$picture[11][9] = 0xEBF7EF
$picture[12][0] = 0xEBF7EF
$picture[12][1] = 0xEBF7EF
$picture[12][2] = 0xEBF7EF
$picture[12][3] = 0x000000
$picture[12][4] = 0xEBF7EF
$picture[12][5] = 0xEBF7EF
$picture[12][6] = 0xEBF7EF
$picture[12][7] = 0xEBF7EF
$picture[12][8] = 0xEBF7EF
$picture[12][9] = 0xEBF7EF
$picture[13][0] = 0xEBF7EF
$picture[13][1] = 0xEBF7EF
$picture[13][2] = 0xEBF7EF
$picture[13][3] = 0xEBF700
$picture[13][4] = 0x0000EF
$picture[13][5] = 0x0000EF
$picture[13][6] = 0x0000EF
$picture[13][7] = 0x0000EF
$picture[13][8] = 0x0000EF
$picture[13][9] = 0x0000EF
$picture[14][0] = 0xEBF7EF
$picture[14][1] = 0xEBF7EF
$picture[14][2] = 0xEBF7EF
$picture[14][3] = 0xEBF7EF
$picture[14][4] = 0xEBF700
$picture[14][5] = 0xEBF700
$picture[14][6] = 0xEBF700
$picture[14][7] = 0xEBF700
$picture[14][8] = 0xEBF700
$picture[14][9] = 0xEBF700
$picture[15][0] = 0x0000EF
$picture[15][1] = 0x0000EF
$picture[15][2] = 0x0000EF
$picture[15][3] = 0x0000EF
$picture[15][4] = 0x0000EF
$picture[15][5] = 0x0000EF
$picture[15][6] = 0x0000EF
$picture[15][7] = 0x0000EF
$picture[15][8] = 0x0000EF
$picture[15][9] = 0x0000EF
$picture[16][0] = 0xEBF700
$picture[16][1] = 0xEBF700
$picture[16][2] = 0xEBF700
$picture[16][3] = 0xEBF700
$picture[16][4] = 0x000000
$picture[16][5] = 0xEBF700
$picture[16][6] = 0xEBF700
$picture[16][7] = 0xEBF700
$picture[16][8] = 0xEBF700
$picture[16][9] = 0xEBF700
$picture[17][0] = 0xEBF7EF
$picture[17][1] = 0xEBF7EF
$picture[17][2] = 0xEBF7EF
$picture[17][3] = 0x0000EF
$picture[17][4] = 0xEBF700
$picture[17][5] = 0xEBF7EF
$picture[17][6] = 0xEBF7EF
$picture[17][7] = 0xEBF7EF
$picture[17][8] = 0xEBF7EF
$picture[17][9] = 0xEBF7EF
$picture[18][0] = 0xEBF7EF
$picture[18][1] = 0xEBF7EF
$picture[18][2] = 0xEBF7EF
$picture[18][3] = 0x000000
$picture[18][4] = 0xEBF7EF
$picture[18][5] = 0xEBF7EF
$picture[18][6] = 0xEBF7EF
$picture[18][7] = 0xEBF7EF
$picture[18][8] = 0xEBF7EF
$picture[18][9] = 0xEBF7EF
$picture[19][0] = 0xEBF7EF
$picture[19][1] = 0xEBF7EF
$picture[19][2] = 0xEBF7EF
$picture[19][3] = 0x000000
$picture[19][4] = 0xEBF7EF
$picture[19][5] = 0xEBF7EF
$picture[19][6] = 0xEBF7EF
$picture[19][7] = 0xEBF7EF
$picture[19][8] = 0xEBF7EF
$picture[19][9] = 0xEBF7EF
$picture[20][0] = 0xEBF7EF
$picture[20][1] = 0xEBF7EF
$picture[20][2] = 0xEBF7EF
$picture[20][3] = 0xEBF700
$picture[20][4] = 0x0000EF
$picture[20][5] = 0x0000EF
$picture[20][6] = 0x0000EF
$picture[20][7] = 0x0000EF
$picture[20][8] = 0x0000EF
$picture[20][9] = 0x0000EF
$picture[21][0] = 0xEBF7EF
$picture[21][1] = 0xEBF7EF
$picture[21][2] = 0xEBF7EF
$picture[21][3] = 0xEBF7EF
$picture[21][4] = 0xEBF700
$picture[21][5] = 0xEBF700
$picture[21][6] = 0xEBF700
$picture[21][7] = 0xEBF700
$picture[21][8] = 0xEBF700
$picture[21][9] = 0xEBF700
$picture[22][0] = 0xEBF7EF
$picture[22][1] = 0xEBF7EF
$picture[22][2] = 0xEBF7EF
$picture[22][3] = 0xEBF7EF
$picture[22][4] = 0xEBF7EF
$picture[22][5] = 0xEBF7EF
$picture[22][6] = 0xEBF7EF
$picture[22][7] = 0x0000EF
$picture[22][8] = 0x0000EF
$picture[22][9] = 0xEBF7EF
$picture[23][0] = 0xEBF7EF
$picture[23][1] = 0xEBF7EF
$picture[23][2] = 0xEBF7EF
$picture[23][3] = 0x0000EF
$picture[23][4] = 0xEBF7EF
$picture[23][5] = 0xEBF7EF
$picture[23][6] = 0x0000EF
$picture[23][7] = 0xEBF700
$picture[23][8] = 0xEBF700
$picture[23][9] = 0x0000EF
$picture[24][0] = 0xEBF7EF
$picture[24][1] = 0xEBF7EF
$picture[24][2] = 0xEBF7EF
$picture[24][3] = 0x000000
$picture[24][4] = 0xEBF7EF
$picture[24][5] = 0xEBF7EF
$picture[24][6] = 0x000000
$picture[24][7] = 0xEBF7EF
$picture[24][8] = 0xEBF7EF
$picture[24][9] = 0x000000
$picture[25][0] = 0xEBF7EF
$picture[25][1] = 0xEBF7EF
$picture[25][2] = 0xEBF7EF
$picture[25][3] = 0x000000
$picture[25][4] = 0xEBF7EF
$picture[25][5] = 0xEBF7EF
$picture[25][6] = 0x000000
$picture[25][7] = 0xEBF7EF
$picture[25][8] = 0xEBF7EF
$picture[25][9] = 0x000000
$picture[26][0] = 0xEBF7EF
$picture[26][1] = 0xEBF7EF
$picture[26][2] = 0xEBF7EF
$picture[26][3] = 0x000000
$picture[26][4] = 0xEBF7EF
$picture[26][5] = 0xEBF7EF
$picture[26][6] = 0x000000
$picture[26][7] = 0xEBF7EF
$picture[26][8] = 0x0000EF
$picture[26][9] = 0xEBF700
$picture[27][0] = 0xEBF7EF
$picture[27][1] = 0xEBF7EF
$picture[27][2] = 0xEBF7EF
$picture[27][3] = 0xEBF700
$picture[27][4] = 0x0000EF
$picture[27][5] = 0x0000EF
$picture[27][6] = 0x000000
$picture[27][7] = 0x0000EF
$picture[27][8] = 0x000000
$picture[27][9] = 0x0000EF
$picture[28][0] = 0xEBF7EF
$picture[28][1] = 0xEBF7EF
$picture[28][2] = 0xEBF7EF
$picture[28][3] = 0xEBF7EF
$picture[28][4] = 0xEBF700
$picture[28][5] = 0xEBF700
$picture[28][6] = 0xEBF700
$picture[28][7] = 0xEBF700
$picture[28][8] = 0xEBF700
$picture[28][9] = 0xEBF700
$picture[29][0] = 0xEBF7EF
$picture[29][1] = 0xEBF7EF
$picture[29][2] = 0xEBF7EF
$picture[29][3] = 0x0000EF
$picture[29][4] = 0x0000EF
$picture[29][5] = 0x0000EF
$picture[29][6] = 0x0000EF
$picture[29][7] = 0x0000EF
$picture[29][8] = 0x0000EF
$picture[29][9] = 0x0000EF
$picture[30][0] = 0xEBF7EF
$picture[30][1] = 0xEBF7EF
$picture[30][2] = 0xEBF7EF
$picture[30][3] = 0xEBF700
$picture[30][4] = 0x000000
$picture[30][5] = 0xEBF700
$picture[30][6] = 0xEBF700
$picture[30][7] = 0xEBF700
$picture[30][8] = 0xEBF700
$picture[30][9] = 0xEBF700
$picture[31][0] = 0xEBF7EF
$picture[31][1] = 0xEBF7EF
$picture[31][2] = 0xEBF7EF
$picture[31][3] = 0x0000EF
$picture[31][4] = 0xEBF700
$picture[31][5] = 0xEBF7EF
$picture[31][6] = 0xEBF7EF
$picture[31][7] = 0xEBF7EF
$picture[31][8] = 0xEBF7EF
$picture[31][9] = 0xEBF7EF
$picture[32][0] = 0xEBF7EF
$picture[32][1] = 0xEBF7EF
$picture[32][2] = 0xEBF7EF
$picture[32][3] = 0x000000
$picture[32][4] = 0xEBF7EF
$picture[32][5] = 0xEBF7EF
$picture[32][6] = 0xEBF7EF
$picture[32][7] = 0xEBF7EF
$picture[32][8] = 0xEBF7EF
$picture[32][9] = 0xEBF7EF
$picture[33][0] = 0xEBF7EF
$picture[33][1] = 0xEBF7EF
$picture[33][2] = 0xEBF7EF
$picture[33][3] = 0x000000
$picture[33][4] = 0xEBF7EF
$picture[33][5] = 0xEBF7EF
$picture[33][6] = 0xEBF7EF
$picture[33][7] = 0xEBF7EF
$picture[33][8] = 0xEBF7EF
$picture[33][9] = 0xEBF7EF
$picture[34][0] = 0xEBF7EF
$picture[34][1] = 0xEBF7EF
$picture[34][2] = 0xEBF7EF
$picture[34][3] = 0xEBF700
$picture[34][4] = 0x0000EF
$picture[34][5] = 0x0000EF
$picture[34][6] = 0x0000EF
$picture[34][7] = 0x0000EF
$picture[34][8] = 0x0000EF
$picture[34][9] = 0x0000EF
$picture[35][0] = 0xEBF7EF
$picture[35][1] = 0xEBF7EF
$picture[35][2] = 0xEBF7EF
$picture[35][3] = 0xEBF7EF
$picture[35][4] = 0xEBF700
$picture[35][5] = 0xEBF700
$picture[35][6] = 0xEBF700
$picture[35][7] = 0xEBF700
$picture[35][8] = 0xEBF700
$picture[35][9] = 0xEBF700
$picture[36][0] = 0xEBF7EF
$picture[36][1] = 0xEBF7EF
$picture[36][2] = 0xEBF7EF
$picture[36][3] = 0xEBF7EF
$picture[36][4] = 0x0000EF
$picture[36][5] = 0x0000EF
$picture[36][6] = 0x0000EF
$picture[36][7] = 0x0000EF
$picture[36][8] = 0x0000EF
$picture[36][9] = 0xEBF7EF
$picture[37][0] = 0xEBF7EF
$picture[37][1] = 0xEBF7EF
$picture[37][2] = 0xEBF7EF
$picture[37][3] = 0x0000EF
$picture[37][4] = 0xEBF700
$picture[37][5] = 0xEBF700
$picture[37][6] = 0xEBF700
$picture[37][7] = 0xEBF700
$picture[37][8] = 0xEBF700
$picture[37][9] = 0x0000EF
$picture[38][0] = 0xEBF7EF
$picture[38][1] = 0xEBF7EF
$picture[38][2] = 0xEBF7EF
$picture[38][3] = 0x000000
$picture[38][4] = 0xEBF7EF
$picture[38][5] = 0xEBF7EF
$picture[38][6] = 0xEBF7EF
$picture[38][7] = 0xEBF7EF
$picture[38][8] = 0xEBF7EF
$picture[38][9] = 0x000000
$picture[39][0] = 0xEBF7EF
$picture[39][1] = 0xEBF7EF
$picture[39][2] = 0xEBF7EF
$picture[39][3] = 0x000000
$picture[39][4] = 0xEBF7EF
$picture[39][5] = 0xEBF7EF
$picture[39][6] = 0xEBF7EF
$picture[39][7] = 0xEBF7EF
$picture[39][8] = 0xEBF7EF
$picture[39][9] = 0x000000
$picture[40][0] = 0xEBF7EF
$picture[40][1] = 0xEBF7EF
$picture[40][2] = 0xEBF7EF
$picture[40][3] = 0x000000
$picture[40][4] = 0xEBF7EF
$picture[40][5] = 0xEBF7EF
$picture[40][6] = 0xEBF7EF
$picture[40][7] = 0xEBF7EF
$picture[40][8] = 0xEBF7EF
$picture[40][9] = 0x000000
$picture[41][0] = 0xEBF7EF
$picture[41][1] = 0xEBF7EF
$picture[41][2] = 0xEBF7EF
$picture[41][3] = 0xEBF700
$picture[41][4] = 0xEBF7EF
$picture[41][5] = 0xEBF7EF
$picture[41][6] = 0xEBF7EF
$picture[41][7] = 0xEBF7EF
$picture[41][8] = 0xEBF7EF
$picture[41][9] = 0xEBF700
$picture[42][0] = 0xEBF7EF
$picture[42][1] = 0xEBF7EF
$picture[42][2] = 0xEBF7EF
$picture[42][3] = 0xEBF7EF
$picture[42][4] = 0x0000EF
$picture[42][5] = 0x0000EF
$picture[42][6] = 0x0000EF
$picture[42][7] = 0x0000EF
$picture[42][8] = 0x0000EF
$picture[42][9] = 0xEBF7EF
$picture[43][0] = 0xEBF7EF
$picture[43][1] = 0xEBF7EF
$picture[43][2] = 0xEBF7EF
$picture[43][3] = 0x0000EF
$picture[43][4] = 0xEBF700
$picture[43][5] = 0xEBF700
$picture[43][6] = 0x000000
$picture[43][7] = 0xEBF700
$picture[43][8] = 0xEBF700
$picture[43][9] = 0x0000EF
$picture[44][0] = 0xEBF7EF
$picture[44][1] = 0xEBF7EF
$picture[44][2] = 0xEBF7EF
$picture[44][3] = 0x000000
$picture[44][4] = 0xEBF7EF
$picture[44][5] = 0xEBF7EF
$picture[44][6] = 0x000000
$picture[44][7] = 0xEBF7EF
$picture[44][8] = 0xEBF7EF
$picture[44][9] = 0x000000
$picture[45][0] = 0xEBF7EF
$picture[45][1] = 0xEBF7EF
$picture[45][2] = 0xEBF7EF
$picture[45][3] = 0x000000
$picture[45][4] = 0xEBF7EF
$picture[45][5] = 0xEBF7EF
$picture[45][6] = 0x000000
$picture[45][7] = 0xEBF7EF
$picture[45][8] = 0xEBF7EF
$picture[45][9] = 0x000000
$picture[46][0] = 0xEBF7EF
$picture[46][1] = 0xEBF7EF
$picture[46][2] = 0xEBF7EF
$picture[46][3] = 0x000000
$picture[46][4] = 0xEBF7EF
$picture[46][5] = 0xEBF7EF
$picture[46][6] = 0x000000
$picture[46][7] = 0xEBF7EF
$picture[46][8] = 0xEBF7EF
$picture[46][9] = 0x000000
$picture[47][0] = 0xEBF7EF
$picture[47][1] = 0xEBF7EF
$picture[47][2] = 0xEBF7EF
$picture[47][3] = 0xEBF700
$picture[47][4] = 0x0000EF
$picture[47][5] = 0x0000EF
$picture[47][6] = 0x000000
$picture[47][7] = 0xEBF7EF
$picture[47][8] = 0x0000EF
$picture[47][9] = 0xEBF700
$picture[48][0] = 0xEBF7EF
$picture[48][1] = 0xEBF7EF
$picture[48][2] = 0xEBF7EF
$picture[48][3] = 0xEBF7EF
$picture[48][4] = 0xEBF700
$picture[48][5] = 0xEBF700
$picture[48][6] = 0xEBF700
$picture[48][7] = 0xEBF7EF
$picture[48][8] = 0xEBF700
$picture[48][9] = 0xEBF7EF
$picture[49][0] = 0xEBF7EF
$picture[49][1] = 0xEBF7EF
$picture[49][2] = 0xEBF7EF
$picture[49][3] = 0xEBF7EF
$picture[49][4] = 0x0000EF
$picture[49][5] = 0x0000EF
$picture[49][6] = 0x0000EF
$picture[49][7] = 0x0000EF
$picture[49][8] = 0x0000EF
$picture[49][9] = 0xEBF7EF
$picture[50][0] = 0xEBF7EF
$picture[50][1] = 0xEBF7EF
$picture[50][2] = 0xEBF7EF
$picture[50][3] = 0x0000EF
$picture[50][4] = 0xEBF700
$picture[50][5] = 0xEBF700
$picture[50][6] = 0xEBF700
$picture[50][7] = 0xEBF700
$picture[50][8] = 0xEBF700
$picture[50][9] = 0x0000EF
$picture[51][0] = 0xEBF7EF
$picture[51][1] = 0xEBF7EF
$picture[51][2] = 0xEBF7EF
$picture[51][3] = 0x000000
$picture[51][4] = 0xEBF7EF
$picture[51][5] = 0xEBF7EF
$picture[51][6] = 0xEBF7EF
$picture[51][7] = 0xEBF7EF
$picture[51][8] = 0xEBF7EF
$picture[51][9] = 0x000000
$picture[52][0] = 0xEBF7EF
$picture[52][1] = 0xEBF7EF
$picture[52][2] = 0xEBF7EF
$picture[52][3] = 0x000000
$picture[52][4] = 0xEBF7EF
$picture[52][5] = 0xEBF7EF
$picture[52][6] = 0xEBF7EF
$picture[52][7] = 0xEBF7EF
$picture[52][8] = 0xEBF7EF
$picture[52][9] = 0x000000
$picture[53][0] = 0xEBF7EF
$picture[53][1] = 0xEBF7EF
$picture[53][2] = 0xEBF7EF
$picture[53][3] = 0x000000
$picture[53][4] = 0xEBF7EF
$picture[53][5] = 0xEBF7EF
$picture[53][6] = 0xEBF7EF
$picture[53][7] = 0xEBF7EF
$picture[53][8] = 0x0000EF
$picture[53][9] = 0xEBF700
$picture[54][0] = 0x0000EF
$picture[54][1] = 0x0000EF
$picture[54][2] = 0x0000EF
$picture[54][3] = 0x000000
$picture[54][4] = 0x0000EF
$picture[54][5] = 0x0000EF
$picture[54][6] = 0x0000EF
$picture[54][7] = 0x0000EF
$picture[54][8] = 0x000000
$picture[54][9] = 0x0000EF
$picture[55][0] = 0xEBF700
$picture[55][1] = 0xEBF700
$picture[55][2] = 0xEBF700
$picture[55][3] = 0xEBF700
$picture[55][4] = 0xEBF700
$picture[55][5] = 0xEBF700
$picture[55][6] = 0xEBF700
$picture[55][7] = 0xEBF700
$picture[55][8] = 0xEBF700
$picture[55][9] = 0xEBF700
$picture[56][0] = 0xEBF7EF
$picture[56][1] = 0xEBF7EF
$picture[56][2] = 0xEBF7EF
$picture[56][3] = 0xEBF7EF
$picture[56][4] = 0xEBF7EF
$picture[56][5] = 0xEBF7EF
$picture[56][6] = 0xEBF7EF
$picture[56][7] = 0xEBF7EF
$picture[56][8] = 0xEBF7EF
$picture[56][9] = 0xEBF7EF
$picture[57][0] = 0xEBF7EF
$picture[57][1] = 0xEBF7EF
$picture[57][2] = 0xEBF7EF
$picture[57][3] = 0xEBF7EF
$picture[57][4] = 0xEBF7EF
$picture[57][5] = 0xEBF7EF
$picture[57][6] = 0xEBF7EF
$picture[57][7] = 0xEBF7EF
$picture[57][8] = 0xEBF7EF
$picture[57][9] = 0xEBF7EF
$picture[58][0] = 0xEBF7EF
$picture[58][1] = 0xEBF7EF
$picture[58][2] = 0xEBF7EF
$picture[58][3] = 0xEBF7EF
$picture[58][4] = 0xEBF7EF
$picture[58][5] = 0xEBF7EF
$picture[58][6] = 0xEBF7EF
$picture[58][7] = 0xEBF7EF
$picture[58][8] = 0xEBF7EF
$picture[58][9] = 0xEBF7EF
$picture[59][0] = 0xEBF7EF
$picture[59][1] = 0xEBF7EF
$picture[59][2] = 0xEBF7EF
$picture[59][3] = 0xEBF7EF
$picture[59][4] = 0xEBF7EF
$picture[59][5] = 0xEBF7EF
$picture[59][6] = 0xEBF7EF
$picture[59][7] = 0xEBF7EF
$picture[59][8] = 0xEBF7EF
$picture[59][9] = 0xEBF7EF
$picture[60][0] = 0xEBF7EF
$picture[60][1] = 0x0000EF
$picture[60][2] = 0x0000EF
$picture[60][3] = 0x0000EF
$picture[60][4] = 0x0000EF
$picture[60][5] = 0x0000EF
$picture[60][6] = 0x0000EF
$picture[60][7] = 0x0000EF
$picture[60][8] = 0x0000EF
$picture[60][9] = 0x0000EF
$picture[61][0] = 0xEBF7EF
$picture[61][1] = 0x000000
$picture[61][2] = 0xEBF700
$picture[61][3] = 0xEBF700
$picture[61][4] = 0xEBF700
$picture[61][5] = 0x000000
$picture[61][6] = 0xEBF700
$picture[61][7] = 0xEBF700
$picture[61][8] = 0xEBF700
$picture[61][9] = 0x000000
$picture[62][0] = 0xEBF7EF
$picture[62][1] = 0x000000
$picture[62][2] = 0xEBF7EF
$picture[62][3] = 0xEBF7EF
$picture[62][4] = 0xEBF7EF
$picture[62][5] = 0x000000
$picture[62][6] = 0xEBF7EF
$picture[62][7] = 0xEBF7EF
$picture[62][8] = 0xEBF7EF
$picture[62][9] = 0x000000
$picture[63][0] = 0xEBF7EF
$picture[63][1] = 0x000000
$picture[63][2] = 0xEBF7EF
$picture[63][3] = 0xEBF7EF
$picture[63][4] = 0xEBF7EF
$picture[63][5] = 0x000000
$picture[63][6] = 0xEBF7EF
$picture[63][7] = 0xEBF7EF
$picture[63][8] = 0xEBF7EF
$picture[63][9] = 0x000000
$picture[64][0] = 0xEBF7EF
$picture[64][1] = 0x000000
$picture[64][2] = 0xEBF7EF
$picture[64][3] = 0xEBF7EF
$picture[64][4] = 0xEBF7EF
$picture[64][5] = 0x000000
$picture[64][6] = 0xEBF7EF
$picture[64][7] = 0xEBF7EF
$picture[64][8] = 0xEBF7EF
$picture[64][9] = 0x000000
$picture[65][0] = 0xEBF7EF
$picture[65][1] = 0x000000
$picture[65][2] = 0xEBF7EF
$picture[65][3] = 0xEBF7EF
$picture[65][4] = 0xEBF7EF
$picture[65][5] = 0x000000
$picture[65][6] = 0xEBF7EF
$picture[65][7] = 0xEBF7EF
$picture[65][8] = 0xEBF7EF
$picture[65][9] = 0x000000
$picture[66][0] = 0xEBF7EF
$picture[66][1] = 0xEBF700
$picture[66][2] = 0xEBF7EF
$picture[66][3] = 0xEBF7EF
$picture[66][4] = 0xEBF7EF
$picture[66][5] = 0xEBF700
$picture[66][6] = 0xEBF7EF
$picture[66][7] = 0xEBF7EF
$picture[66][8] = 0xEBF7EF
$picture[66][9] = 0xEBF700
$picture[67][0] = 0xEBF7EF
$picture[67][1] = 0xEBF7EF
$picture[67][2] = 0xEBF7EF
$picture[67][3] = 0x0000EF
$picture[67][4] = 0xEBF7EF
$picture[67][5] = 0xEBF7EF
$picture[67][6] = 0xEBF7EF
$picture[67][7] = 0xEBF7EF
$picture[67][8] = 0xEBF7EF
$picture[67][9] = 0xEBF7EF
$picture[68][0] = 0xEBF7EF
$picture[68][1] = 0x0000EF
$picture[68][2] = 0x0000EF
$picture[68][3] = 0x000000
$picture[68][4] = 0x0000EF
$picture[68][5] = 0x0000EF
$picture[68][6] = 0x0000EF
$picture[68][7] = 0x0000EF
$picture[68][8] = 0x0000EF
$picture[68][9] = 0x0000EF
$picture[69][0] = 0x0000EF
$picture[69][1] = 0xEBF700
$picture[69][2] = 0xEBF700
$picture[69][3] = 0x000000
$picture[69][4] = 0xEBF700
$picture[69][5] = 0xEBF700
$picture[69][6] = 0xEBF700
$picture[69][7] = 0xEBF700
$picture[69][8] = 0xEBF700
$picture[69][9] = 0xEBF700
$picture[70][0] = 0x000000
$picture[70][1] = 0xEBF7EF
$picture[70][2] = 0xEBF7EF
$picture[70][3] = 0x000000
$picture[70][4] = 0xEBF7EF
$picture[70][5] = 0xEBF7EF
$picture[70][6] = 0xEBF7EF
$picture[70][7] = 0xEBF7EF
$picture[70][8] = 0xEBF7EF
$picture[70][9] = 0xEBF7EF
$picture[71][0] = 0x000000
$picture[71][1] = 0xEBF7EF
$picture[71][2] = 0xEBF7EF
$picture[71][3] = 0x000000
$picture[71][4] = 0xEBF7EF
$picture[71][5] = 0xEBF7EF
$picture[71][6] = 0xEBF7EF
$picture[71][7] = 0xEBF7EF
$picture[71][8] = 0xEBF7EF
$picture[71][9] = 0xEBF7EF
$picture[72][0] = 0xEBF700
$picture[72][1] = 0x0000EF
$picture[72][2] = 0x0000EF
$picture[72][3] = 0x000000
$picture[72][4] = 0x0000EF
$picture[72][5] = 0x0000EF
$picture[72][6] = 0x0000EF
$picture[72][7] = 0x0000EF
$picture[72][8] = 0x0000EF
$picture[72][9] = 0x0000EF
$picture[73][0] = 0x0000EF
$picture[73][1] = 0xEBF700
$picture[73][2] = 0xEBF700
$picture[73][3] = 0x000000
$picture[73][4] = 0xEBF700
$picture[73][5] = 0xEBF700
$picture[73][6] = 0xEBF700
$picture[73][7] = 0xEBF700
$picture[73][8] = 0xEBF700
$picture[73][9] = 0xEBF700
$picture[74][0] = 0x000000
$picture[74][1] = 0xEBF7EF
$picture[74][2] = 0xEBF7EF
$picture[74][3] = 0x000000
$picture[74][4] = 0xEBF7EF
$picture[74][5] = 0xEBF7EF
$picture[74][6] = 0xEBF7EF
$picture[74][7] = 0xEBF7EF
$picture[74][8] = 0xEBF7EF
$picture[74][9] = 0xEBF7EF
$picture[75][0] = 0x000000
$picture[75][1] = 0xEBF7EF
$picture[75][2] = 0xEBF7EF
$picture[75][3] = 0xEBF700
$picture[75][4] = 0x0000EF
$picture[75][5] = 0x0000EF
$picture[75][6] = 0x0000EF
$picture[75][7] = 0x0000EF
$picture[75][8] = 0x0000EF
$picture[75][9] = 0xEBF7EF
$picture[76][0] = 0xEBF700
$picture[76][1] = 0xEBF7EF
$picture[76][2] = 0xEBF7EF
$picture[76][3] = 0x0000EF
$picture[76][4] = 0xEBF700
$picture[76][5] = 0xEBF700
$picture[76][6] = 0x000000
$picture[76][7] = 0xEBF700
$picture[76][8] = 0xEBF700
$picture[76][9] = 0x0000EF
$picture[77][0] = 0xEBF7EF
$picture[77][1] = 0xEBF7EF
$picture[77][2] = 0xEBF7EF
$picture[77][3] = 0x000000
$picture[77][4] = 0xEBF7EF
$picture[77][5] = 0xEBF7EF
$picture[77][6] = 0x000000
$picture[77][7] = 0xEBF7EF
$picture[77][8] = 0xEBF7EF
$picture[77][9] = 0x000000
$picture[78][0] = 0xEBF7EF
$picture[78][1] = 0xEBF7EF
$picture[78][2] = 0xEBF7EF
$picture[78][3] = 0x000000
$picture[78][4] = 0xEBF7EF
$picture[78][5] = 0xEBF7EF
$picture[78][6] = 0x000000
$picture[78][7] = 0xEBF7EF
$picture[78][8] = 0xEBF7EF
$picture[78][9] = 0x000000
$picture[79][0] = 0xEBF7EF
$picture[79][1] = 0xEBF7EF
$picture[79][2] = 0xEBF7EF
$picture[79][3] = 0x000000
$picture[79][4] = 0xEBF7EF
$picture[79][5] = 0xEBF7EF
$picture[79][6] = 0x000000
$picture[79][7] = 0xEBF7EF
$picture[79][8] = 0xEBF7EF
$picture[79][9] = 0x000000
$picture[80][0] = 0xEBF7EF
$picture[80][1] = 0xEBF7EF
$picture[80][2] = 0xEBF7EF
$picture[80][3] = 0xEBF700
$picture[80][4] = 0x0000EF
$picture[80][5] = 0x0000EF
$picture[80][6] = 0x000000
$picture[80][7] = 0xEBF7EF
$picture[80][8] = 0x0000EF
$picture[80][9] = 0xEBF700
$picture[81][0] = 0xEBF7EF
$picture[81][1] = 0xEBF7EF
$picture[81][2] = 0xEBF7EF
$picture[81][3] = 0xEBF7EF
$picture[81][4] = 0xEBF700
$picture[81][5] = 0xEBF700
$picture[81][6] = 0xEBF700
$picture[81][7] = 0xEBF7EF
$picture[81][8] = 0xEBF700
$picture[81][9] = 0xEBF7EF
$picture[82][0] = 0xEBF7EF
$picture[82][1] = 0xEBF7EF
$picture[82][2] = 0xEBF7EF
$picture[82][3] = 0xEBF7EF
$picture[82][4] = 0x0000EF
$picture[82][5] = 0x0000EF
$picture[82][6] = 0x0000EF
$picture[82][7] = 0x0000EF
$picture[82][8] = 0x0000EF
$picture[82][9] = 0xEBF7EF
$picture[83][0] = 0xEBF7EF
$picture[83][1] = 0xEBF7EF
$picture[83][2] = 0xEBF7EF
$picture[83][3] = 0x0000EF
$picture[83][4] = 0xEBF700
$picture[83][5] = 0xEBF700
$picture[83][6] = 0xEBF700
$picture[83][7] = 0xEBF700
$picture[83][8] = 0xEBF700
$picture[83][9] = 0x0000EF
$picture[84][0] = 0xEBF7EF
$picture[84][1] = 0xEBF7EF
$picture[84][2] = 0xEBF7EF
$picture[84][3] = 0x000000
$picture[84][4] = 0xEBF7EF
$picture[84][5] = 0xEBF7EF
$picture[84][6] = 0xEBF7EF
$picture[84][7] = 0xEBF7EF
$picture[84][8] = 0xEBF7EF
$picture[84][9] = 0x000000
$picture[85][0] = 0xEBF7EF
$picture[85][1] = 0xEBF7EF
$picture[85][2] = 0xEBF7EF
$picture[85][3] = 0x000000
$picture[85][4] = 0xEBF7EF
$picture[85][5] = 0xEBF7EF
$picture[85][6] = 0xEBF7EF
$picture[85][7] = 0xEBF7EF
$picture[85][8] = 0xEBF7EF
$picture[85][9] = 0x000000
$picture[86][0] = 0xEBF7EF
$picture[86][1] = 0xEBF7EF
$picture[86][2] = 0xEBF7EF
$picture[86][3] = 0x000000
$picture[86][4] = 0xEBF7EF
$picture[86][5] = 0xEBF7EF
$picture[86][6] = 0xEBF7EF
$picture[86][7] = 0xEBF7EF
$picture[86][8] = 0xEBF7EF
$picture[86][9] = 0x000000
$picture[87][0] = 0xEBF7EF
$picture[87][1] = 0xEBF7EF
$picture[87][2] = 0xEBF7EF
$picture[87][3] = 0xEBF700
$picture[87][4] = 0xEBF7EF
$picture[87][5] = 0xEBF7EF
$picture[87][6] = 0xEBF7EF
$picture[87][7] = 0xEBF7EF
$picture[87][8] = 0xEBF7EF
$picture[87][9] = 0xEBF700
$picture[88][0] = 0xEBF7EF
$picture[88][1] = 0xEBF7EF
$picture[88][2] = 0xEBF7EF
$picture[88][3] = 0x0000EF
$picture[88][4] = 0xEBF7EF
$picture[88][5] = 0xEBF7EF
$picture[88][6] = 0xEBF7EF
$picture[88][7] = 0xEBF7EF
$picture[88][8] = 0xEBF7EF
$picture[88][9] = 0xEBF7EF
$picture[89][0] = 0xEBF7EF
$picture[89][1] = 0x0000EF
$picture[89][2] = 0x0000EF
$picture[89][3] = 0x000000
$picture[89][4] = 0x0000EF
$picture[89][5] = 0x0000EF
$picture[89][6] = 0x0000EF
$picture[89][7] = 0x0000EF
$picture[89][8] = 0x0000EF
$picture[89][9] = 0xEBF7EF
$picture[90][0] = 0xEBF7EF
$picture[90][1] = 0xEBF700
$picture[90][2] = 0xEBF700
$picture[90][3] = 0x000000
$picture[90][4] = 0xEBF700
$picture[90][5] = 0xEBF700
$picture[90][6] = 0xEBF700
$picture[90][7] = 0xEBF700
$picture[90][8] = 0xEBF700
$picture[90][9] = 0x0000EF
$picture[91][0] = 0xEBF7EF
$picture[91][1] = 0xEBF7EF
$picture[91][2] = 0xEBF7EF
$picture[91][3] = 0x000000
$picture[91][4] = 0xEBF7EF
$picture[91][5] = 0xEBF7EF
$picture[91][6] = 0xEBF7EF
$picture[91][7] = 0xEBF7EF
$picture[91][8] = 0xEBF7EF
$picture[91][9] = 0x000000

   ;Search for the pic in a general region where the pic is expected to be.
    $beginpixel = _PixelSearchPic($picture, 0x00FF00, 0, 120, 100, 350, 215);its not in that area but it should be found on full screen search
    If @error <> 0 Then
        ConsoleWrite("Not found in usual spot on 1024x768 screen... searching entire screen..."&@CR)
       ; It didn't find in the usual spot, search whole screen.
        $beginpixel = _PixelSearchPic($picture, 0x00FF00, 0)
        If @error <> 0 Then
            ConsoleWrite("Not found."&@CR)
            SetError(1)
            Return 0
        EndIf
    EndIf
    $picture = 0;No need to be using up extra memory.
    ConsoleWrite("Time taken: "&TimerDiff($now) &" Milliseconds."& @CR)
    ConsoleWrite("Found on: "&$beginpixel[0]&" , "&$beginpixel[1] & @CR)
    Return 1
EndFunc  ;==>findpic

Not found in usual spot on 1024x768 screen... searching entire screen...

Not found.

+>22:44:59 AutoIT3.exe ended.rc:0

+>22:45:00 AutoIt3Wrapper Finished

>Exit code: 0 Time: 5.548

Share this post


Link to post
Share on other sites

Is there a way to find an image somewhere within a 300x800 area? With out knowing its x,ys?

Im trying to make a pick-it based on an items stats but I cant seem to get OCR working (I dont have ms office). So Im going try to make screen shots of all wanted stats and hope itll work.

The items stats looks like this:

Posted Image

Lets say I want to keep any item with enhanced effect.

(hopefully I'd be able to weed out low +#'s)

Posted Image

Can auto find the stat if it's in a random spot within that 300x800 area? If so please point me to what I need to know.

I've had great success with kangkeng's ImageSearch dll & udf here: http://www.autoitscript.com/forum/index.ph...mp;#entry488195

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Thanks but "Invalid download link".

/edit nvm...its working now.

/edit2 K its working all I need to do now is to figure out how to weed out the lower +#'ed mods.

Thxs for everyones help.

Edited by KnowNothing

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