Advertisement

05.22.2008 at 12:37AM PDT, ID: 23423517 | Points: 350
[x]
Attachment Details

Detecting color behind cursor C++

Asked by mcordi in C++ Programming Language, C Programming Language, C# Programming Language

Tags: C++

Hello, experts!
I'm trying to detect when a certain color is behind my cursor, then clicking once that color is true under the cursor

I have the code for emulating mouse clicking and setting mouse position, but I do not know how to detect colors.

I'm hoping for something like
if(ForegroundColor == '52141') {
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
      mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
}

But I don't think it's that easy :(Start Free Trial
[+][-]05.22.2008 at 02:20AM PDT, ID: 21622014

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 05:04AM PDT, ID: 21622938

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 05:15AM PDT, ID: 21623011

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 07:29AM PDT, ID: 21624117

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 10:13AM PDT, ID: 21625717

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 04:26PM PDT, ID: 21628418

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628