Virtual Keyboard on Host OS

This is for discussing general topics about how to use VirtualBox.
Post Reply
vb39
Posts: 1
Joined: 18. Aug 2010, 00:25
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows

Virtual Keyboard on Host OS

Post by vb39 »

Hi all,

I search some way to programmaticaly send Keyboard/Mouse input from host os to VB.

Any ideas?

Thanks.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Virtual Keyboard on Host OS

Post by Sasquatch »

Install Guest Additions in the Guest, then check the manual for guestcontrol. Since 3.2.0, you can execute commands from the Host on the Guest and even send key strokes. It's a new feature that I haven't looked into much, so the feature name could be different.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
HubTou
Posts: 93
Joined: 24. Nov 2009, 11:01
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: FreeBSD, OpenSolaris, and several Linuxes

Re: Virtual Keyboard on Host OS

Post by HubTou »

Hello,
vb39 wrote:I search some way to programmaticaly send Keyboard/Mouse input from host os to VB
What about:

Code: Select all

VBoxManage controlvm <uuid>|<name> keyboardputscancode <hex> [<hex> ...]
I also have additional shell code (for Unix hosts) to help with the translation of characters or strings in scancodes.
See http://www.projet-hev.org/dist/generateur1-1.02.tar.bz2 for an example
and http://www.projet-hev.org/dist/hev1.flv to see it in action.

Best regards,

Hubert
Post Reply