Jump to content

Script which counts clicks in a specific link or area


Recommended Posts

Hey,

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:

http://www.htmlcodetutorial.com/forms/_FORM_METHOD_POST.html

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

Is that possible with AutoIt?

Link to comment
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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...