Page 1 of 1
[SOLVED] Tipro OSX command keys
Posted: 12 Aug 2016, 12:12
by mecano
Hello,
curious to know how you come over this one : programming a key to send command on OSX with a Tipro. Especially having Left command and Right command.
So far, I have been using this workaround:
- put Capslock where I want the command keys ;
- have Capslock send command through System Preferences.
I couldn't find a scan code for an OS key, maybe I could use unicode/ascii but beeing a modifier I'm not sure about the non repeating/hold behaviour of the tipro. Is the key still registered when it is pressed and have the repeating option unselected? I guess not.
edit: marked as solved
Posted: 16 Aug 2016, 21:08
by macboarder
I'm not sure if it'll help with your case, but I'm going to give it a shot anyways. I'm using a piece of (free) software called Karabiner which lets you remap anything to anything else. It also comes with a keyboard event viewer so that you can see which keys generate which scancodes. So, for instance, I would try programming one of the keys to generate something like [F13] and then using Karabiner remap [F13] to [L Command]. The software is smart enough to know which keys should act as modifiers so it will actually send all the additional info that modifier keys generate. It also comes with an event viewer so you can see all the scancodes and additional info that's being generated.
In case you won't be able to find the desired mapping among the built-in ones (and there's roughly eleventy squintillion of them) you can always create your own ones. For instance, I have a config profile for PC keyboards wherein I map [PrtScr] to [Fn] and thus get the media/volume control shortcuts you'd normally get on an Apple keyboard.
Hope this helps!
Posted: 16 Aug 2016, 22:50
by face
How can you remap "everything" with karabiner? On my version there are only certain option, that are commonly used but very specific, nothing customizeable.
Posted: 16 Aug 2016, 23:32
by macboarder
I've had to edit private.xml (go to "Preferences..." and then "Misc & Uninstall", find "open private.xml") to get the aforementioned [F13]->[Fn] mapping, I used
this as a reference, and here's how my private.xml looks like:
Code: Select all
<?xml version="1.0"?>
<root>
<item>
<name>Change F13 to Fn</name>
<identifier>private.f13_to_fn</identifier>
<autogen>__KeyToKey__ KeyCode::F13, KeyCode::FN</autogen>
</item>
</root>
As a result, "Change F13 to Fn" shows up on top of the "Change Key" list.
I'm using Karabiner version 10.21.0, running on OS X 10.11.6.
Posted: 17 Aug 2016, 09:11
by face
THANKS!!
Posted: 17 Aug 2016, 12:58
by macboarder
Glad to be of help, cheers!
Posted: 18 Aug 2016, 10:45
by mecano
Ok resolved it, thought Tipro used some kind of IBM/PS/2 scan codes but it turns out these are (at least with changeme 5.22.0) plain USB HID codes, so it was simple as setting /E3 E3\ for Command left and /E7 E7\ for Command right.
@macboarder thanks for the help i've gone to programmable programs to get rid of Karabiner (not that is bad or ugly but trying to avoid another software layer), the EventViewer is an amazing valuable tool though and you can even put it out from the Karabiner package to run it by it own whenever you want to.
Posted: 18 Aug 2016, 11:01
by kbdfr
mecano wrote: […] it was simple as setting /E3 E3\ for Command left and /E7 E7\ for Command right.[…]
… which are the codes for the left and the right Windows keys, respectively.
Posted: 18 Aug 2016, 11:08
by mecano
Yes indeed

I got confused by the scan codes tables posted in the Tipro programming on the fly thread, found this one which is dead simple:
http://www.mindrunway.ru/IgorPlHex/USBKeyScan.pdf