Mouse click event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Generally when we make any key work, we use the following code :

SendKeys "%FO", True

But in case I want sendkey for mouse left key click OR Mouse Right key click
.. What code I should write.

Please advise. Thanks
 
Irshad Alam said:
Generally when we make any key work, we use the following code :

SendKeys "%FO", True

But in case I want sendkey for mouse left key click OR Mouse Right
key click . What code I should write.

Please advise. Thanks

You cannot "send" a mouse click using any built-in feature of Access.
You may be able to do it by calling Windows API routines, but it would
be quite complicated. What exactly are you trying to do? There may be
a better way.

Incidentally, using SendKeys to send keystrokes is problematic and
usually to be avoided.
 
To my knowledge there is no SendKeys mouse click event. They should have it.

You can easily set up a mouse event in the properties of a field. But that
is not what I think you are talking about.

I have used an old Windows 3.1 application "Recorder.exe" to execute
specific mouse movements when a legacy application was written so badly that
I could not navigate to a subform by keystrokes.

There are some freeware and shareware Mouse applications like Recorder that
can be used. Look for MouseKeys in the Internet.

Yup. I just tested the old Windows 3.1 Recorder.exe from 1993 and it still
works in Windows XP. However, this is a very cumbersome and unreliable system
to get a Windows macro the execute mouse actions.
 
Back
Top