Here is a program I've made that uses the webcam finding a color and turning it into a mouse position. Made it using Visual Basic 2010. The webcam was grabbed by using Touchless SDK.
New Version!
• Webcam Mouse Control 'Visual Mouse' Version 2
Since everyone is asking for code, I've started making videos on how-to in visual basic. Check those videos out in my channel!