midi to keystroke in max any suggestions?

LoSo's icon

Hi everybody... I'm new in this forum so Hi!

And I have a question:

Does anyone have an idea how to build a midi CC to keystroke thingy in Max which runs on Mac and Windows. Or might there be an external?

Something like this:

I press C#1 on my keyboard and my computer does "CMD+ALT+T"

I know that there are several programs that do something like this, but I want that functionality in one monolithical maxpatch.

benj3737's icon

aka.keyboard

amazing stuff.
Written for max 4.6 but works fine in max 5 for me.

Timur's icon

The suggested solutions only work on MAC (here's another one: http://www.stilomatic.net/07/index.php?option=com_content&task=view&id=34&Itemid=27).

I am looking for a Windows solution (or prefereable multi-platform as asked for by the thread-starter). At the moment Bome's Midi Translator seems to be the only solution for Windows, but if I have to use that one I can just stay with my Reaktor patch and go through Bome instead of learning Max for an ellegant all in one solution.

So if anyone knows a Windows/Multi-platform solution, please let us know.

LoSo's icon

Hi Timur...

Timur's icon

Hey Loso,

welcome to this forum... err... wait... welcome myself, too. :D

Timur's icon

I wonder if maybe Javascript could be a solution that could work on both OSes? I know Macscript can do keystroke and mousebutton emulation, but can Javascript do that?

Timur's icon

Well, I take the absence of answers as a "no one knows".

Autohotkey kind of does the trick on Windows, but that's an inferior solution to using Bome (which now runs on both PC and Mac) and still an inferior solution to doing it all in Max.

Is there no Windows (or better cross-platform) based External that allows sending Keystrokes out of Max?

Stefan Tiedje's icon

Timur schrieb:
> Well, I take the absence of answers as a "no one knows".
>
> Autohotkey kind of does the trick on Windows, but that's an inferior
> solution to using Bome (which now runs on both PC and Mac) and still
> an inferior solution to doing it all in Max.

In the original question, it was about controling Max itself with these
keystrokes, though I don't know for what purpose. I bet you don't need
to emulate keystrokes to do what you want...

Emulating keystrokes for other Programs from within Max is a different
story, because it is highly OS specific. On a Mac you would use
applescript, on a PC I don't know. I doubt you'd be able to come up with
a cross platform solution without creating completely different
applications for each platform...
Usually only the application in front takes keystrokes anyway, better
look for other ways to communicate to your application...

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

Timur's icon

Thanks for the reply, Stefan.

The original question was about the same as mine, namely how to make Max output keystrokes. As it seems there are only Mac based externals for that and no cross-plattform solution. One can use Applescript on Mac and Autohotkey scripts on PC, but then again it's two separate solutions and the second time it takes to precompile these scripts lead to some latency.

We will either stick to Mac only for the Max patch then or use Bome's Midi Translator and output midi instead.

Thanks again!

Qualm's icon

Hello i am quite new to this.

I am trying to understand how to
make the keystroke point to à another program

i have used aka.keyboard but i don't understand
how you set the output.

Example: key #C to Shift+y in Microsoft Word.

I want to Solveig this in Max.
I don't want to use midipipe, applescript or or other external programs

/many thanks

benj3737's icon

I'm not sure what you mean by #C to Shift Y, but this patch just sends Shift Y every second. Try loading this up and then switching to word and see what happens:

Max Patch
Copy patch and select New From Clipboard in Max.

Does this help?

Qualm's icon

This time it worked. Thanks to you.
I thought that aka.keyboard was the input.
But now i realize that it was à output.

Thanks again

/fresh

Bibby's icon

As for me, I use ProteMac KeyBag as a keystroke.
http://protemac.com/keybag/

seejayjames's icon

autobot mxj script, tweak to your liking: