I have a macbook-pro with a swedish keyboard. To to get the curly brace '{' I press alt(=option)+shift+8, but to get the same character when I run vmware/windows I should press alt+7.

Oviously, I would like to use the same keyboard layout in mac and windows, how can I make this happen?

link|improve this question

33% accept rate
feedback

2 Answers

up vote 2 down vote accepted

In Fusion, add these keyboard mappings:

  1. Shift+Option+8 to Control+Alt+7
  2. Shift+Option+9 to Control+Alt+0
link|improve this answer
Now, two years later I get the same problem and I find your answer. Thanks! (I may add the the kayboard mapping is done under VmWareFusion/preferences.../kayboard & mouse) – ragnarius Feb 7 at 13:19
feedback

You could use something like autohotkey, which will let you assign arbitrary key combinations to arbitrary tasks.

!+8::{

would set alt-shift-8 to {, for example.

link|improve this answer
Thanks ! (I can't score you because my own score is < 15) Now I am trying to learn autohotkey.... The script !+8::Send {{} works, but only when I have told Windows that my keyboard is "EN", and then I can't use the keys Å Ä Ö. Maybe it is possible to replace !+8 by the scan-code of the Alt- Shift- and 8-keys? – ragnarius Mar 21 '10 at 10:59
@ragnarius; Well, ! means alt, + means shift, and 8 is obvious, it's quite a high-level key remapping, it goes on the letter, rather than the physical key pressed - does htting the 8 still produce an 8? (As for the accented symbols, you could assign those to keys (If you right-click the script, hit open and then view key history, you should be able to see which keys have been pressed recently)) – Phoshi Mar 21 '10 at 11:15
Thanks again, apparently the ALT-key on my right hand side generates a CTRL ALT, and the ALT-key on my left hand side is a windows shortcut for opening menues. Anyway, the script ^!+8::Send{{} makes the rhs-ALT-key work the way I like. --Thanks! – ragnarius Mar 21 '10 at 12:09
1  
Oh, yes. Right alt on most windows keyboards is "Alt Gr", which is effectively control alt, and lets me type things like € or á. AHK has a specific combo for alt-gr in <^>!, which is apparently more portable, so if you plan to use the script on multiple PCs that might be better. – Phoshi Mar 21 '10 at 12:34
I encountered a new problem. I think it is incorrect to use "send" (my error), so I have removed it. The scripts a::| and b::{ produce a pipe and a curly bracket when I press a and b, the script <^>!7::| produces the desired pipe when I press AltGr7, but <^>!+8::{ does not produce anything (and if I "send" the curly bracket it translates to an AltGr7 which gives me the pipe). – ragnarius Mar 21 '10 at 14:42
show 5 more comments
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.