If mouse pointer is changed then execute

I want to define some rectangular area(a hyperlink text will be available anywhere in that area)
So I want to define a macro in such a way that, the cursor will go to each and every pixel of that rectangle area, and as soon as the pointer changes then it should execute the left click.