keystroke emulation not reaching some software

michi_mak

2013-01-30 12:37:29

i'm trying to send keystrokes to different software. some do accept ( so i did understand how to do ) these emulation some ( grandMA2 onPC but it accepts translated midi messages!!! ) don't ? does anybody know at least a reason why ( a solution would be prefered of course ;-) )?

florian

2014-02-04 20:02:32

Hi,

sometimes, the problem is that keys are triggered to fast from Midi Translator. Then it helps to differentiate "key down" and "key release", and send the "release" with a delay.

E.g. if you want to press letter A on incoming MIDI Note 64 (hexadecimal 40), do this:

Code: Select all

Translator 0:
[ ] stop processing
Incoming: 90 40 7F
Outgoing: Key Down: A

Translator 1:
[ ] stop processing
Incoming: 90 40 7F
Outgoing: Key Up: A
   [x] delay 10ms
For keystroke combinations, rip them apart like this for ALT+H:

Code: Select all

Translator 0:
[ ] stop processing
Incoming: 90 40 7F
Outgoing: Key Down: ALT

Translator 1:
[ ] stop processing
Incoming: 90 40 7F
Outgoing: Keystroke/Sequence: H
   [x] delay 10ms

Translator 2:
[ ] stop processing
Incoming: 90 40 7F
Outgoing: Key Up: ALT
   [x] delay 15ms
Of course, the incoming action will probably be different for you, and you may need to experiment a bit with the delays.

We plan for a future version to have a "slow keystrokes" option so that MTP will do the delaying on its own.

Thanks,
Florian