MCU to keystroke

Hi and welcome to the Bome community!

What DAW are you using? Perhaps instead of using a keystroke, if your DAW supports MCU, then you can open the plugin the way an MCU would, natively using MCU (MIDI) instead of keystroke.

If you are using MIDI to keystroke, then there are a few tips.

  1. Before you send the keystroke, make sure you DAW is focused. You can do this by having a translator with an outgoing action of ‘focus app’, then followed by another translator with outgoing action of keystroke with a slight delay (maybe 10ms). They would be triggered by the same incoming note.

  2. Since they would fire every time, you might need to use a global variable in Bome MIDI Translator to indicate whether the plugin is already showing or not. Then if the global variable shows it is already showing, suppress the outgoing action. This could be a bit tricky since if you close the plugin within the DAW, Bome MIDI Translator would have no knowledge of this since there would be nothing to trigger an action in Bome MIDI Translator Pro, to reset the global variable.

Now with all of this said, please see the attached example.

  • Translator 0.0 sets the global variable ga to 1 when notepad has focus.
  • Translator 0.1 sets the global variable ga to 0 when notepad is not focused.
  • Translator 0.2 will send focus to notepad (done in rules with the Perform outgoing action which triggers translator 0.3, followed by a keystroke ‘a’ with a delay of 20 ms. In the rules, it looks at the status of focus (ga) to determine whether to send focus or just send the keystroke (if already focused).

Keystroke-Focus Demo.bmtp (1.5 KB)

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz