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

Causing a mouse click

P: n/a
Hello all,

Could anyone possibly tell me how to cause a mouse click at a certain
screen coordinate (say 100, 100).

For example, if I press 1 on the keyboard I want the mouse pointer to
physically move and click at a certain coordinate.

What classes/libraries should I be looking at, excuse beginner level of
knowledge.

Thank you for your help,

Matthew

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
"wickedw" <mw*****@bentos.force9.co.uk> schrieb:
Could anyone possibly tell me how to cause a mouse click at a certain
screen coordinate (say 100, 100).


P/invoke with 'SetCursorPos' and 'mouse_event':

<URL:http://groups.google.to/groups?selm=eqFfJBU%24EHA.2196%40TK2MSFTNGP14.phx. gbl>

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

Nov 21 '05 #2

P: n/a
Hi...I am just starting out in VB and and am having a lot of problems
understanding the replies. Where do i paste this code. I am reading the
books, but it is slow going :-)
thanks for any help offered.

"Herfried K. Wagner [MVP]" wrote:
"wickedw" <mw*****@bentos.force9.co.uk> schrieb:
Could anyone possibly tell me how to cause a mouse click at a certain
screen coordinate (say 100, 100).


P/invoke with 'SetCursorPos' and 'mouse_event':

<URL:http://groups.google.to/groups?selm=eqFfJBU%24EHA.2196%40TK2MSFTNGP14.phx. gbl>

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

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.