?
Solved

Simulate MouseClick

Posted on 2003-11-12
4
Medium Priority
?
434 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 1000 total points
ID: 9735647
jern50,

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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
Suggested Courses

809 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