set up auto mouse click ?

G

Guest

i'm trying to find the coordinates of a certain button on a page that i'm
viewing so i can program the mouse to click on it automatically every so many
seconds. either that or have the mouse click wherever the mouse pointer is
resting every few seconds.i would like to set up an adjustable timer on it
where you can choose to have it click once every 1 to 10 seconds.i'm trying
to teach myself vb.net and i'm having trouble on how to code this one or how
exactly i should set it up.thanks for any help.
 
H

Herfried K. Wagner [MVP]

aam said:
i'm trying to find the coordinates of a certain button on a page that i'm
viewing so i can program the mouse to click on it automatically every so
many
seconds. either that or have the mouse click wherever the mouse pointer is
resting every few seconds

What page? A webpage shown in the browser? Do you have control over the
source code?
 
C

Cor Ligthert

Aam,

This question is often been in this newsgroup, however a little bit
senseless.

When you are learning you should in my opinion more learn to get the proper
methods than how to fix something on a strange way. That you can do when
normal methods don't exist.

For this is even a complete method which is called.

button1.click
http://msdn.microsoft.com/library/d...mwindowsformsbuttonclassperformclicktopic.asp

It generates something as
myButton1clickSub(nothing,nothing)

However there are a lot of other ways to archieve what you are doing easier
than finding the button on the page.

By instance you can do
myButton1clickSub(Timer1, nothing)

I hope this helps,

Cor
 
G

Guest

yes, i want to have the mouse click on a button on a webpage that i'm
viewing.i'm not sure how you program the mouse to locate it and click on
it.also, be able to set up timer for it.
 
H

Herfried K. Wagner [MVP]

aam said:
yes, i want to have the mouse click on a button on a webpage that i'm
viewing.i'm not sure how you program the mouse to locate it and click on
it.also, be able to set up timer for it.

If you simply want to submit an HTML form that is shown inside a WebBrowser
control:

\\\
With AxWebBrowser1.Document.forms(0)
.All("UserAccount").value = "username"
.All("AccessCode").value = "password"
.submit() ' Click the "Submit" button.
End With
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top