Как мне поменять местами ALT и клавишу Windows на одной клавиатуре, а не на другой?

442
Jason Mirk

Я запускаю Bootcamp на Macbook Air, и я поменял Alt клавишей Windows, так что ALT. У меня также есть внешняя клавиатура для Windows, но теперь у нее тоже есть клавиша. Я бы хотел поменять местами клавиши на клавиатуре Macbook, но не на внешней.

Кажется, это невозможно с AutoHotKey.

0
Ты не можешь Вы можете использовать только одну раскладку клавиатуры в любой момент времени. Ramhound 8 лет назад 0
странно. Это так просто на OSX. Jason Mirk 8 лет назад 0

1 ответ на вопрос

1
SleepingInsomniac

It can be done with AHKHID, however, it is not completely straightforward.

Essentially, you set up a hotkey as normal, then use AHKHID to detect which keyboard sent the input. Based on that, you either send the original key (equivalent to not remapping), or send the remapped key, depending on which keyboard it is.

However, AHKHID is considerably more complex than basic keyboard remapping, and I can't find any examples to demonstrate what I'm talking about.

As an alternative, you could use LuaMacros, which natively supports multiple keyboards, although is not as full featured as AHK. For a simple remapping, it should probably suffice though.