How to make the mouse left click every 30 seconds...?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to make the mouse left click every 30 seconds...?

  1. #1
    Join Date
    Dec 2005
    Posts
    7

    Question How to make the mouse left click every 30 seconds...?

    Hi.
    I am new to this forum, and I will probably be on here frequently
    I have a question....
    I would like to make a program in VB that will do the following...
    I want it to left click the mouse every 30 seconds. No matter where the mouse arrow is on the screen.
    I have looked all around, and have been unable to find out how to do this.
    I have only been working on VB for a few months, so I am fairly new.
    Does anyone know how I could do this? It is really frustrating.

    Thanks.
    Shawn.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Hi, Shawn, welcome to DevX! Add a Timer control to your Form. Set its Interval property to 30000 (milliseconds, that is, 30 seconds) and its Enabled property to True. Then, in the Timer1_Timer event, call the LeftClick function defined here: http://www.developerfusion.co.uk/show/68/ .
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Dec 2005
    Posts
    7
    Thanks for the tip!

    Is it possible to have the program click a button on a website (this website uses javascript) every 30 seconds?
    I thought about the "placing the mouse arrow over the button, and letting it click", but then I wont be able to do other things on my computer at the same time.
    So is there a way to do this....not involving the mouses arrow?
    I am trying to make it click the "good" button on this website every 30 seconds:
    http://www.clickthru.com/remote?tm=V...k=1&lk=1&dup=1

    Thanks.
    Shawn.


    PS: would this work? :
    Making a simple web browser, and defining a certain spot on the page to click every 30 seconds? Not a link, but an actuall spot on the page.


    I basically need to find out a way to have that "good" button clicked every 30 seconds.....while at the same time, I can be doing other things on my computer.
    Last edited by Xtreme17; 12-11-2005 at 08:03 PM.

Similar Threads

  1. Linking a button click to a mouse event?
    By fulcanelli in forum Java
    Replies: 10
    Last Post: 11-06-2005, 02:29 PM
  2. Replies: 10
    Last Post: 09-26-2005, 08:43 PM
  3. Replies: 9
    Last Post: 09-20-2005, 01:16 PM
  4. Re: MAKE $$$$$$$$$$ FAST THIS REALLY WORKS
    By Mark Campisi in forum .NET
    Replies: 0
    Last Post: 07-14-2002, 04:05 PM
  5. convert seconds to date
    By Aalm in forum Database
    Replies: 9
    Last Post: 04-17-2001, 10:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center