If I have undertand, we have to simulate click on screen every "n" ms.
For me it is a rush job...
In my case, I went to know if a small target marker is inside a screen zone. Let's say that the screen zone is 10 times bigger than the marker, every "n" ms I will have to simulate 10 x 10 times a click to know if it is inside...
That's not really optimized...
The most simple solution is to have the screen coordinate of the marker. Is it possible ?
about 5 years ago
Receiving the screen coordinates via JS is not possible - but the good news is that upcoming SDK 5.0 will provide some more interfaces towards image-recognition.