Page 1 of 1

Need help in Mouse Controls

Posted: Thu Aug 26, 2010 6:31 pm
by Seraphim
Hey I'm Still new to RevTalk But Iwanted to make a Fun Desktop Application but first I needsome help I need to order the mouse to follow specific pixel color on the desktop like for example the screen wallpapers is compsed of 100 colors i want the mouse to stay on a designated color and not move and reposition the instant the mouse is moved though i need a handle to turn in on and off anykind of help would be nice
Thanks to all :D

Re: Need help in Mouse Controls

Posted: Wed Sep 01, 2010 6:28 am
by Mark
Seraphim,

The lack of punctuation makes it rather difficult to read your question.

Can you tell a little more about the purpose of your project? My first thought is that you can check the mouseColor after the mouse moves and can move the mouse back if the color is wrong. However, this is very unelegant and probably slow.

If this is supposed to work with multiple monitors, then you probably will want to search for a different development platform. It won't work.

Do you realise that photos may contain 16777216 different colours? That's a tad more than the 100 colours mentioned by you. You will probably want to write an algorithm to determine if the mouseColor is within a range of colours,e.g. 5±5,5±5,250±5 for blue.

Best regards,

Mark