Whats wrong with my get pixel code?

bunze

Well-known member
Joined
Aug 4, 2005
Messages
52
Location
Adirolf
Programming Experience
1-3
Private Declare Function GetPixel Lib "gdi32" (ByVal X As Long, ByVal Y As Long) As Integer

If RGB(128, 128, 128) = GetPixel(3, 55) Then
MessageBox.Show("color!")
End If

Nothing happens!

I hope this is the code to scan my SCREEN, no my program.
 
I hope this is the code to scan my SCREEN, no my program.
I had tried this sometime back (bots for MMORPGs) and had no luck breaking out of the form for screen scraping.

I don't have a VB.Net solution (Sorry!), but I was able to do everything I needed for a screen scraping application with AutoIT v3. It's a nice, FREE macro writing program (v3 actually has GUI interfaces as well, so it's not 'entirely' fair to call it a script maker) and fairly easy to use.

Like I said, sorry I can't help you with a VB solution.
 
Back
Top