Solved

Simulate MouseClick

Posted on 2003-11-12
4
428 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

705 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