How har will this be to make?
I'm new to programming, but i need to program something for a project of mine. I need to make a program that can track a spot of my monitor, then when it notices change i that spot it will start a timer, and when it notices change again it will stop the timer and give me the number. Will this be hard? i have done very little C# programming.
Posted Mar 11, 2015, 6:28 PM UTC
Ignore the other guy. What you're trying to do isn't hard to understand at all.
It shouldn't be too hard to implement, but it really depends on you. You can easily search to find methods of getting the color of a specific pixel on the screen, set up a timer, etc. The only potentially hard part is gluing it all together.
Could you lead me on my way, it basicly just has to check the color of the pixel like 30 times a second, and when the color is white it will start the timer and when it turns white again it should stop. Do you know where i should start, or a good tutorial maybe.
I found this.
https://msdn.microsoft.com/en-us/library/system.drawing.bitmap.getpixel%28v=vs.110%29.aspx
Now i will just have to add the coordinates, add some if and then commands, and thats it right?
That's only going to work if you're looking to get the color of a pixel at a certain co-ordinate within a Bitmap.
Now, you can copy the screen to a Bitmap, you'd need to do THIS multiple times per second and then check the pixel in the screen image. You're better off using P/invoke to use the Windows API to do this.