picture on screen

BlitzMax Forums/BlitzMax Beginners Area/picture on screen

hugblue(Posted 2012) [#1]
hi ..

is there a command or a way to find a specific place on the screen on both windows and desktop.

if for an example :
i take a picture of the screen anywhere. size 20,20.

then i in blitzmax make it find that particular place where that 20,20 picture is. based on that already copied 20,20 picture place.

thz.


ImaginaryHuman(Posted 2012) [#2]
You would have to have the big image in a pixmap, plus the small portion of it in a pixmap, and then use the cpu to go through the pixels in the small image and see if their values match the pixels in the big image at the current position, in nested loop. If you get all the way done with the inner loop without finding a mismatch, then you know you found it.


hugblue(Posted 2012) [#3]
hi imaginaryhuman ..

you shouldnt know of any "code" or somewhere i can start looking. started with blitzmax around .... yesterday.

is a little like a jungle to find the right information or where to start.


ImaginaryHuman(Posted 2012) [#4]
There is no code for something like that you have to write it.


hugblue(Posted 2012) [#5]
thz anyway.
then i have a job to do.