Sign in to follow this  
Followers 0
Thornhunt

searching and finding certian pixels

4 posts in this topic

ok is there a way of searching for a group of coloured pixels?

like OCR

for exaple:

L

searching the whole area around that L for all the pixels that make the L at the same time?

i have searched the help file and found nothing


Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Share this post


Link to post
Share on other sites



ok is there a way of searching for a group of coloured pixels?

like OCR

for exaple:

L

searching the whole area around that L for all the pixels that make the L at the same time?

i have searched the help file and found nothing

Did you search the forums for OCR?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

yes , and have yet to find one that has a answer relivent to my need

the thing is.

i need this little bit of script to find the character in the selected location then to move the cursor x many places to its left.

but the character is a colection of set pixels next to each other

Edited by Thornhunt

Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Share this post


Link to post
Share on other sites

PixelSearch()

From the helpfile

; Find a pure red pixel in the range 0,0-20,300
$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 )
If Not @error Then
    MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])
EndIf


; Find a pure red pixel or a red pixel within 10 shades variations of pure red
$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 )
If Not @error Then
    MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])
EndIf

My Projects: [topic="89413"]GoogleHack Search[/topic], [topic="67095"]Swiss File Knife GUI[/topic], [topic="69072"]Mouse Location Pointer[/topic], [topic="86040"]Standard Deviation Calculator[/topic]

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