Can I set the Host Key with VBoxManage?

This is for discussing general topics about how to use VirtualBox.
Post Reply
paulehoffman
Posts: 23
Joined: 20. Oct 2010, 18:15
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: many

Can I set the Host Key with VBoxManage?

Post by paulehoffman »

Greetings. I'm not seeing anything in the documentation about how I would set the Host Key for the program from VBoxManage. This seems odd because the doc says "VBoxManage supports all the features that the graphical user interface gives you access to, but it supports a lot more than that."

Clues appreciated.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can I set the Host Key with VBoxManage?

Post by Perryg »

VBoxManage getextradata and setextradata (global)

Code: Select all

VBoxManage getextradata global GUI/Input/HostKeyCombination
Will show you the current setting. But the real trick is finding the proper value to set this with VBoxManage setextradata global

Rt Ctrl = 65508
Left Ctrl = 65507
paulehoffman
Posts: 23
Joined: 20. Oct 2010, 18:15
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: many

Re: Can I set the Host Key with VBoxManage?

Post by paulehoffman »

Thanks! That was far from clear in the doc.

Any chance you might know the value for my favorite, "Right Alt"? Or, better, where can I find the values table?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can I set the Host Key with VBoxManage?

Post by Perryg »

Rt Alt = 65514

I have written a few down but other than looking inside the code.
Python seems to be the right place to look though. http://packages.python.org/pyglet/api/p ... odule.html for a list of what you need.
paulehoffman
Posts: 23
Joined: 20. Oct 2010, 18:15
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: many

Re: Can I set the Host Key with VBoxManage?

Post by paulehoffman »

Many thanks. I'll try to get this patched into the doc.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can I set the Host Key with VBoxManage?

Post by Perryg »

Just keep in mind that some of the combinations would be illegal. Just the common ones are to be used. (no function keys, Etc.)
wxl
Posts: 12
Joined: 24. Jun 2015, 23:28
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: mainly Windows
Location: Cascadia
Contact:

Re: Can I set the Host Key with VBoxManage?

Post by wxl »

what are the accepted values? i didn't find this in any obvious place in the code. i understand key combinations are a thing now, too, eh?
Post Reply