Jump to content
Sign in to follow this  

Script which counts clicks in a specific link or area

Recommended Posts



I was wondering how do I make a script, which counts clicks in the specific area/link/button.

The specific link is gonna be PostMethod (HTML) button.

So let's think that I would like to count how much I wanna press Send It -button in this website:


Every time when I press "Send It" -button, script will count that.

Is that possible with AutoIt?

Share this post

Link to post
Share on other sites

Well, first of all, welcome.

There might be a way to detect when it's clicked (IE might fire an event of some kind) then count that. Will take a little research...

Alternatively, you might be able to first find where the button is on the page and how big it is (not quite sure how to do this but I'm sure it can be done - unless of course you know where it will be all the time), then:

  • monitor for mouse clicks
  • on every mouse click determine if it's location falls within the button's bounds and if the window is active/on top.
Also, if you describe your overall project and why it is necessary to count the button presses you might get some suggestions for other ways of approaching it.

How new are you with AutoIt, have you got any code at all yet?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.