Results 1 to 9 of 9

Thread: What am I doing wrong?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2009
    Posts
    435

    What am I doing wrong?

    Loading
    Code:
          ProcessHandle = FindWindow(vbNullString, "Google - Mozilla Firefox")
            ProcessDC = GetDC(0)
    Closing
    Code:
     Call ReleaseDC(0, ProcessDC)
    Timer
    Code:
       On Error Resume Next
            Dim X As Long, Y As Long, PixelColor As Long
            Dim CursorPosition As Point
            Call GetCursorPos(CursorPosition)
            For X = CursorPosition.X - 20 To CursorPosition.X + 20
                For Y = CursorPosition.Y - 20 To CursorPosition.Y + 20
                    PixelColor = GetPixel(ProcessDC, X, Y)
                    If (PixelColor = RGB(255, 0, 0)) Then
         MessageBox.Show("") 'to see if it finds the color
     Exit Sub
                               End If
                Next Y
            Next X
    Theres no MessageBox that pops up, what's wrong?
    Last edited by werido; Nov 25th, 2009 at 01:01 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width