Results 1 to 5 of 5

Thread: color of pixel

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Posts
    129

    color of pixel

    I want to be able to find the color of the pixel at the mouse coordinate on a web browser control. then i want to be able to clik it,(example: hover over a green link, it sees its green, and automatically clicks).. ty very much if this can work
    Resizing
    System Balloons

    If your question is answered, please mark the thread resolved by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button.

    Remember to rate a post if you find it helpful

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: color of pixel

    Take a look at GetPixel API and mouse_event API at www.allapi.net
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Posts
    129

    Re: color of pixel

    okay, i see that but it uses the mouse move event to find the color. a webbrowser control doesn't have a mouse move event.
    Resizing
    System Balloons

    If your question is answered, please mark the thread resolved by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button.

    Remember to rate a post if you find it helpful

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Posts
    129

    Re: color of pixel

    Is there a way to get the color of a pixel on the screen, no matter what control it is. It can be on the form say at 1000,1000. Plz help
    Resizing
    System Balloons

    If your question is answered, please mark the thread resolved by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button.

    Remember to rate a post if you find it helpful

  5. #5
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: color of pixel

    Use GetCursorPos API in a timer along with GetPixel API to get the pixel at the cursor's position.
    Hope that helps!
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

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