Solved

Simulate MouseClick

Posted on 2003-11-12
4
426 Views
Last Modified: 2008-03-03
For a specific debugging routine I need a stand-alone script that will simulate a continuously clicking mouse.  I assume that it will link some type of onmousedown and onmouseup action in a continuous loop.  Most of my programming involves webpages and I any background in stand-alone scripts.  I'd appreciate any suggestions on where to start.
0
Comment
Question by:jern50
  • 2
4 Comments
 
LVL 10

Expert Comment

by:Bustarooms
ID: 9734495
<html>
<body onload="setInterval('document.links[0].click();',1000);">
<a href="http://www.google.com" name="thisLink" target="_blank">Google</a>
</body>
</html>
0
 
LVL 10

Expert Comment

by:Bustarooms
ID: 9734509
you can actually forget the link name.

<html>
<body onload="setInterval('document.links[0].click();',1000);">
<a href="http://www.google.com" target="_blank">Google</a>
</body>
</html>


this is going to simulate the Google link being clicked every 1000 miliseconds

that's a start.  please feel free to post if you need more help.
0
 

Author Comment

by:jern50
ID: 9735123
Thanks for the solution, but I need to simulate a mouseclick.  Like clicking an "Okay" button repeatedly.
0
 
LVL 25

Accepted Solution

by:
devic earned 250 total points
ID: 9735647
jern50,

you can use tasker for this work:
==========
http://www.vista-software.com/tasker.htm
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question