473,396 Members | 1,836 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

set up auto mouse click ?

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
4 2611
"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
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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: punkin | last post by:
I am trying to catch mouse position on the entire screen by dynamically generating mouse click event at every 100 ms. My code only works for IEs but not any Netscape or Gecko-based browsers. The...
0
by: James | last post by:
I have a problem with the ide that, while I have a workaround, is still annoying. I have all the windows, help, properties, toolbox, call stack, watch, etc. set to auto-hide. There are times...
24
by: aam | last post by:
hi, im trying to figure out how i can program the mouse to automatically click on a button of a web page that i'm viewing.i do not have control over the page.i would also like to set up an...
8
by: John | last post by:
Hi, I am developing an application using VB.Net and hope that the textbox can process features which are similar to auto-complete features in Window. For example, when user types "ap" in a...
5
by: Nick | last post by:
Hey guys, I have 2 events on a windows forms datagrid, the mouse move as well as the double click events. What's happening is that when I double click on a row in the grid, the mouse move event...
5
by: Raja | last post by:
Hi, I want to write an Bot which could play games in a site automatically. the site is www.pogo.com. I would like to write a C++ Bot which will play game of Bingo ie. detect pieces and simulate...
4
by: magmike | last post by:
I've got a control on my form that allows the user to select a record based on a form field (in this example, the drop down menu shows the company name, followed by the contact name but uses the...
4
by: mike1reynolds | last post by:
I have a VirtualMode DataGridView that bogs down on using the mouse wheel to scroll and gets a backlog of messages such that it continues to scroll long after ceasing to turn the mouse wheel. This is...
2
by: laurenss | last post by:
hi i have an apllication build in vb6 that opens links like : http://www.google/userid=1 then http://www.google/userid=2 and so further .. its an dynamic hyperlink with vazriable i but now ,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.