Moving the mouse with code
I am currently starting to attempt to make a program that can move my cursor to certain colors on my monitor. The problem is this seems like it will be 10x harder than I first thought. Is there anyone that can point me in the right direction to get started?
Re: Moving the mouse with code
Quote:
Originally Posted by
Shadoninja
... Is there anyone that can point me in the right direction to get started?
Probably...
But why don't you describe your problem a bit more better? What does "move my cursor to certain colors on my monitor" mean?
What type of application are you going to use?
...
1 Attachment(s)
Re: Moving the mouse with code
See the sample for moving mouse cursor programmatically.
SetCursorPos function
Re: Moving the mouse with code
and to add to Igor's response,
if all you want to do is look at a specific pixel, and if it's colour "A" then move the cursor to that x,y point, and if colour = "B" then don't move the cursor. then all you need is the "GetPixelColor(x,y)" but if you wanna find any colour on the screen that matches your colour, then it'll be much much more difficult. (well you COULD also do that with "GetPixelColor" but it'd be extremely slow.)
Re: Moving the mouse with code
.. no edit function on these forums?.. anyways.
http://www.vintasoft.com/docs/vsimag...ixelColor.html
that is the breif explanation of getpixelcolor, and you can use igor's reply to figure out how to do the mouse thing.
cheers ^.^