By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

set up auto mouse click ?

P: n/a
aam
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.
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"aam" <aa*@discussions.microsoft.com> schrieb:
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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2

P: n/a
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/de...clicktopic.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

"aam" <aa*@discussions.microsoft.com>
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.

Nov 21 '05 #3

P: n/a
aam
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.

"Herfried K. Wagner [MVP]" wrote:
"aam" <aa*@discussions.microsoft.com> schrieb:
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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4

P: n/a
"aam" <aa*@discussions.microsoft.com> schrieb:
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
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.