2

I want to create a hotkey command that insert this text "/" in whatever application I'am

The reason is because I'm a developer and I use the / symbol a lot, the problem is with my keyboard layout, that symbol should be made with SHIFT + 7, and thats not easily done with one hand.

3 Answers 3

2

Keyboard Maestro can type text per hotkey:

1

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

<?xml version="1.0"?>
<root>
  <item>
    <name>test</name>
    <identifier>test</identifier>
    <autogen>__KeyToKey__ KeyCode::F1, KeyCode::KEY_7, ModifierFlag::SHIFT_L</autogen>
  </item>
</root>

You could also create ~/Library/KeyBindings/ and save a property list like this as DefaultKeyBinding.dict:

{
  "\Uf704" = (insertText:, "/"); // F1
}

It doesn't work in all applications though.

0

you could use OS X´s built in correction to achieve something similar.

system settings -> keyboard -> text

then enter something (e.g. "!!!"), and that will automatically replaced by "/" in all cocoa apps.

You must log in to answer this question.

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