Sending keyboard input in VMWare with C #

I want to send clicks and keyboard keys to a window with a virtual machine, such as VMware or VirtualBox. I want to pilot it from the host OS from an application written in C #.

I can move and click on the mouse.

But I can not send keyboard input. I tried with SendKeys, but that didn't work. It works with every other "normal" window. But I think this is due to the way VMware or Virtual BOx intercept keyboard events.

Any idea?

+7
c # winapi virtualbox vmware
source share
1 answer

Yes, SendKeys and VMWare (e.g. mstsc) do not like each other.
But I believe that VMWare has some API functions for this. Try searching here: http://www.vmware.com/support/pubs/sdk_pubs.html

+1
source share

All Articles