Help with Color Clicker

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • want2beScripter
    New Member
    • Mar 2008
    • 2

    Help with Color Clicker

    How do you make C not C++ click on a color if it finds it?
    Let's say I want it to click on red..... how can the mouse scan for the color red and if found click on it.....
    Also is there a possible way for C to look for an image and click on it....
    Let's say I want C to click on a stick figure i've drawn in paint..... so is there a way to look for that image and if it's there click on it

    Regards.

    Please note: That I just started learning C but all the books i've read say nothing about this.... maybe i'm in the wrong lanuage? Well please post if so.
    Last edited by Markus; Jul 2 '11, 10:30 AM. Reason: Removed name at request of user
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Originally posted by want2beScripter
    How do you make C not C++ click on a color if it finds it?
    Let's say I want it to click on red..... how can the mouse scan for the color red and if found click on it.....
    Also is there a possible way for C to look for an image and click on it....
    Let's say I want C to click on a stick figure i've drawn in paint..... so is there a way to look for that image and if it's there click on it

    Regards.

    Please note: That I just started learning C but all the books i've read say nothing about this.... maybe i'm in the wrong lanuage? Well please post if so.
    I don't understand your question. It sounds like you are trying to find a button or link based on color. If this is a hyperlink, you can parse the html for the color tag, but any way you have it, the 'link' will have an attribute that describes it as red - you just have to figure out how to get it.

    So what type of link is this?
    Last edited by Markus; Jul 2 '11, 10:30 AM. Reason: Removed name at request of user

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      what want to do can be done in C. It has been done many times and one of those programs is called Windows. Get a copy of Windows via C/C++ by Jeffrey Richter.

      Comment

      Working...