You are not logged in.

#1 2013-05-26 10:48:47

mumo
Member
Registered: 2012-05-06
Posts: 22

Catching Keyboard in VirtualBox except for certain Shortcuts?!

Hi there.

Does anyone know how to accomplish that VirtualBox will catch all mouse and keyboard inputs except for certain shortcuts? (like strg + alt + x)

I'd really like to use a Windows-VM which resides on one specific virtual desktop of my compiz cube in full screen mode. but if you reach this desktop all keyboard inputs are caught and you cannot use any shortcuts to rotate the cube any further e.g.

if anyone knows about a workaround i would be very thankful smile

Offline

#2 2013-06-14 20:02:06

mumo
Member
Registered: 2012-05-06
Posts: 22

Re: Catching Keyboard in VirtualBox except for certain Shortcuts?!

anyone?

Offline

#3 2013-06-14 20:15:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,550
Website

Re: Catching Keyboard in VirtualBox except for certain Shortcuts?!

Don't bump, rather elaborate what you have tried since your original posting, what you have read, what has not worked so far.  I have win XP in a vritualbox on arch at home, and I have no problem doing what you describe, admittedly not with compiz, but with a tagging window manager: I can switch to the vbox tag with a Mod+# keypress, then switch to another with Mod+#.  I didn't have to do any special configuration for this.

Virtual box does, though, have settings for "host" keys.

I just did a google search for this, and its been asked on several forums - at least a few I checked had what looked like reasonable answers - have you found these?  Have you tried the solutions?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2013-06-14 20:28:51

mumo
Member
Registered: 2012-05-06
Posts: 22

Re: Catching Keyboard in VirtualBox except for certain Shortcuts?!

sorry - i'm pretty much lost. of course i did some research but actually could not find anything useful - at least i'm considering the "just press the host-key-solution" not useful^^.

if you found some interesting starting points i would really appreciate them smile

Offline

#5 2013-06-14 20:37:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,550
Website

Re: Catching Keyboard in VirtualBox except for certain Shortcuts?!

First, I never suggested to "just press the host key".  I indicated that virtual box has settings related to the host key about which keys would be passed on to the host - this is what you are looking for isn't it.

As far as sharing leads - I just googled it (actually duck-duck-go'ed it) and got many results.  I don't know what you would interesting though as - like I said - it works just fine for me already.

If you need me to provide you the link to duck duck go, it's duckduckgo.com.  Beyond that, you'll really have to do some of your own reading and testing.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2013-06-14 21:06:49

mumo
Member
Registered: 2012-05-06
Posts: 22

Re: Catching Keyboard in VirtualBox except for certain Shortcuts?!

Trilby wrote:

First, I never suggested to "just press the host key".

You didn't - but almost every thread i stumbled upon does. wink sorry for this misconception.


Trilby wrote:

I indicated that virtual box has settings related to the host key about which keys would be passed on to the host - this is what you are looking for isn't it.

Actually yes - it's exactly what i'm looking for. but i still cannot find it. i'm starting to think my vb is just out of date. will go after it. thank you for this hint.


Trilby wrote:

As far as sharing leads - I just googled it (actually duck-duck-go'ed it) and got many results.  I don't know what you would interesting though as - like I said - it works just fine for me already.

If you need me to provide you the link to duck duck go, it's duckduckgo.com.  Beyond that, you'll really have to do some of your own reading and testing.

i'm wondering what lets you think I would not have tried to solve this on my own. actually i guess googling a presumably little 'problem' would be so much easier than posting it here... -.- nevermind. thanks nevertheless.


edit:
----

all i got sad

d6vgmi48.png

Last edited by mumo (2013-06-14 21:16:30)

Offline

#7 2013-06-14 21:34:30

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Catching Keyboard in VirtualBox except for certain Shortcuts?!

Check this out:
https://aur.archlinux.org/packages/libx … oadnograb/
Do read the comments because they relate to Virtualbox.

Offline

#8 2013-06-14 21:51:45

virtual
Member
From: Thesaloniki/Greece
Registered: 2006-10-17
Posts: 9

Re: Catching Keyboard in VirtualBox except for certain Shortcuts?!

In my situation i wanted to make the VirtualBox Windows guest ignore the shortcuts Win(Super)+1, Win+2, ... as i use these combos to switch
between my arch host openbox virtual desktops and Windows annoyingly acts as if i clicked on the start button (due to catching the Win-key).
My solution is as follows:
On the windows guest install autohotkey and run at startup this autohotkey script:

 #1::
FileAppend, wmctrl -s 0, E:\vmguest.cmd
return

The autohotkey code above says: intercept pressing of the Win+1 combo (# is for Win key) and when doing so append the string wmctrl -s 0
at the file E:\vmguest.cmd. The E drive is shared with the archlinux host so that the file the autohotkey scripts refers to becomes ~/vmguest.cmd. All you then need is a script on the host that checks this file very often and interprets/executes a command as instructed by
the vm guest(check every 5 msecs or so).
wmctrl -s 0 is the command that actually gets executed as it switches to the first openbox desktop.
This is not exactly what we would hope for but it does the job of seamlessly switching desktops. Hope it helps.

Offline

#9 2013-06-14 21:59:15

mumo
Member
Registered: 2012-05-06
Posts: 22

Re: Catching Keyboard in VirtualBox except for certain Shortcuts?!

thank you procyon and virtual.

some promising starting points.=) will check keyboardnograb. the autohotkey script looks promising, too. but i'd rather solve it globally on the host because of multiple heterogeneous guests.

Offline

Board footer

Powered by FluxBB