Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am going crazy switching between Windows XP in a VirtualBox and the host (OSX), mostly due to the use of control-c, control-v, control-x and that they are different between the two OSes.

Is there any way to get my Windows machine to use different shortcuts OS-wide?

Edit: I really need a way to override Windows-C Windows-X Windows-V Windows-Z and Windows-Tab (copy, cut, paste, undo and switch-apps) for the solution to work for me.

Edit: Thanks for John T.'s help, I've got my autokey stuff working. I posted my final code for Windows guests on OSX here.

share|improve this question
up vote 2 down vote accepted

Yep, check out Autohotkey. You can choose to have the hotkeys work on a per-application basis or system wide.

example:

^!n::Run C:\Windows

This will allow you to use Ctrl + Alt + n to open an explorer window to C:\Windows.

The hotkeys tutorial is a great start for making your own custom hotkeys.

share|improve this answer
    
Man I'm glad I asked. Are you the Jon Skeet of superuser? – Dan Rosenstark Jan 29 '10 at 16:55
    
You can make WinXP machine interpret some other keys as 'Copy', 'Paste' and other actions, but you cannot stop it from interpreting Ctrl+C and Ctrl+V the same way. @John: how do you highlight hotkeys that way? I read the whole help, but didn't found anything regarding. – whitequark Jan 29 '10 at 16:56
    
thanks whitequark. that might be fine. @John T, I edited the question to reflect what I need. Can Autohotkey do it? – Dan Rosenstark Jan 29 '10 at 17:04
    
AHK can do ^c ^v just as easily. And the keyboard keys are in <kbd> tags. – Phoshi Jan 29 '10 at 17:11
    
@Yar you can use #c::Send ^c to make the windows key and c send Ctrl-C, if that's what you're after? Similar with #v::Send ^v ... – John T Jan 29 '10 at 17:43

Just for the Super User archives, something I found at some blog. ;-)

  1. Change your Host key on VirtualBox to be the RIGHT command key

  2. Download AutoHotkey

  3. Put this script in as the startup script

 #SingleInstance force
 #r::Send ^r ;reload
 #z::Send ^z ; undo
 #y::Send ^y ; redo
 #f::Send ^f ; find inside apps
 #c::Send ^c ; copy
 #x::Send ^x ; cut
 #v::Send ^v ; paste
 #t::Send ^t ; new tab, Firefox
 #s::Send ^s ; save inside apps
 LWin & Tab::AltTab ; the motherlode, alt-tab!

and you're up and running!

share|improve this answer
    
I love that blog! I'm like the only reader! Thanks Arjan... – Dan Rosenstark Jan 30 '10 at 16:06

First change the Host Key to Right Command key...

And then change all usages of Windows key to Control Key, in your AHK script.

LWin::LCtrl
LCtrl::LWin

Now the keys are remapped for all shortcuts!

share|improve this answer
    
this is exactly what I was looking for – Aprillion Jul 1 at 12:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .