I have four translators set up to take MIDI input from my Akai MPK Mini’s drum pads and emulate a keystroke depending on the pad that is pressed. This works as intended in most programs (Notepad, Visual Studio, my browser, really any program that involves using keystrokes to type something.) However, when I try to use it with a game (which is my ultimate goal), the keystrokes do not go through. They are being translated and emulated, so I doubt this is a fault of the MIDI translator, but I thought the forums would be worth a try anyway.
mania.bmtp (436 Bytes)
Hi and welcome to the Bome community!
Well first you do not have any default input ports so I created an alias as follows:
You can learn more about aliases from this tutorial.
Then I set up the preset to monitor that alias for incoming messages.
For more information about device selection, see this tutorial.
Finally I added two more 3 more translators as follows.
Perform Focus - Has an outgoing action to focus my selected application. I’m using EdipPlus but you should select your game application executable here.
Application Focused
This triggers when the application is focused and sets the global variable ga to 1 in the rules
Application Unfocused
This triggers when the application is not focused and sets the global variable of ga to 0 in rules.
Again, for incoming application you need to select the game application executable that your are using for both of these translators.
Finally I set up these rules in each of your translators to call the translator ‘Perform Focus’. They will ensure your application is focused before sending the keystroke. If your application is already focused (ga=1), there is no need to trigger the the event.
if ga==0 then Perform "Focus"
If this doesn’t work, it is possible that the gaming application is bypassing Windows drivers and accessing your keyboard at the HID (Human Interface Device) level. This is often done in games to stop players from cheating the system.
Good Luck!
mania-sjc.bmtp (1.6 KB)
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
Did you ever get this working? If so, what did you do?
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
@SteveC ,
Hey there, thanks for following up! Admittedly, I haven’t actually tried the file you provided, since it requires the paid version. But, I did download it, and I intend to continue this project one day. Again, thank you for your help. Cheers.
It doesn’t require a paid version to test it but it will time out every 20 minutes with the test version. The reason I asked is because I’m afraid some games bypass keyboard drivers and I was curious if it ever worked with your game.
Ohh, I see. I was using the classic version, which I’m assuming is why I’d get hit with a bunch of errors when I loaded it up. Anyway, it still seems to only work for typing things instead of actually playing the game, so it must be (like you said) some HID-level shenanigans that the game is pulling. Probably just needs more research into the game itself, unless Bome has a way of getting around this that I’m unaware of?