Solved

Simulate MouseClick

Posted on 2003-11-12
4
423 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
Comment Utility
<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
Comment Utility
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
Comment Utility
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
Comment Utility
jern50,

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now