Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking to find a way of mapping multiple simultaneous keypresses to one action. As an example something similar to hitting ctrl-option- at the same time but instead using just normal letters such as p-s-v. Pressing these keys simultaneously would perform some action.

I have downloaded both Ukelele and KeyRemap4Macbook but both only allow you to remap a single key--not including the special keys(ctrl,alt,etc).

How can I accomplish this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can use a private.xml like this with KeyRemap4MacBook:

<?xml version="1.0"?>
<root>
  <item>
    <name>test</name>
    <identifier>test</identifier>
    <autogen>__SimultaneousKeyPresses__ KeyCode::Q, KeyCode::W, KeyCode::E</autogen>
  </item>
</root>

For more than two keys, use @begin and @end:

__SimultaneousKeyPresses__
@begin
KeyCode::Q, KeyCode::W, KeyCode::E
@end
@begin
KeyCode::R
@end

This would make pressing F and I simultaneously open Finder:

<vkopenurldef>
  <name>KeyCode::VK_OPEN_URL_FINDER</name>
  <url>file:///System/Library/CoreServices/Finder.app</url>
</vkopenurldef>
<item>
  <name>test</name>
  <identifier>test</identifier>
  <autogen>__SimultaneousKeyPresses__ KeyCode::F, KeyCode::I, KeyCode::VK_OPEN_URL_FINDER</autogen>
</item>

See https://raw.github.com/tekezo/KeyRemap4MacBook/master/Tests/lib/string/data/checkbox.xml for more examples.

share|improve this answer
    
That's great Lauri, I'll check this out and hopefully it works! –  greedybuddha Dec 13 '13 at 18:10
    
and it works great! many thanks! –  greedybuddha Dec 16 '13 at 0:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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