sending mouse click and keyboard messages

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

Guest

Hi,

How do I send a mouse click and keyboard key's to my main form in code ?
 
If you are going to be sending those clicks and key presses from within the
main form's code,
all you have to to is call the
OnClick() and OnKeyPress() methods of the form.

Otherwise, you will have to use interop to call SendMessage() from the Win
API

HTH
 
Hi Francois,

thx. I now done it with p/invoke and keybd_event() function.

rgds, Wilfried
 

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

Back
Top