hi all i got a question, i tried lots of things but i cant find any answers. how can i compare a picture in a picture box with something on the screen at given coordinates, im looking for something like this:

VB Code:
  1. Option Explicit
  2.  
  3. Public Sub CompareIMG()
  4. Dim intX As Integer
  5. Dim intY As Integer
  6.  
  7. Dim blnMatch As Boolean     'True if pictures match
  8.  
  9.     If intX > 200 Then      'Check within given coordinates
  10.         intX = 0
  11.         intY = intY + 1
  12.     Else
  13.         Do Until blnMatch = True
  14.             'Here is what i dont get, i hope it will be short like this:
  15.             Compare picImage With (intX, intY), blnMatch
  16.            
  17.             intX = intX + 1
  18.         Loop
  19.     End If
  20.        
  21. End Sub

but it will probably will be very different
I hope anyone knows how to do something like this

Bye, Koen