Forums > MaxMSP

midi to keystroke in max any suggestions?

August 28, 2008 | 4:32 pm

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.


August 28, 2008 | 5:18 pm

aka.keyboard

http://www.iamas.ac.jp/~aka/max/#aka_keyboard

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


August 31, 2008 | 9:48 am

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.


August 31, 2008 | 11:10 am

Hi Timur…


August 31, 2008 | 11:37 am

Hey Loso,

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


August 31, 2008 | 11:39 am

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?


September 3, 2008 | 11:42 am

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?


September 14, 2008 | 7:48 am

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


September 15, 2008 | 12:19 pm

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!


September 1, 2009 | 2:47 pm

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


September 1, 2009 | 4:14 pm

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:

– Pasted Max Patch, click to expand. –

Does this help?


September 2, 2009 | 5:32 am

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


June 22, 2010 | 3:05 pm

As for me, I use ProteMac KeyBag as a keystroke.

http://protemac.com/keybag/


June 28, 2010 | 8:57 am

autobot mxj script, tweak to your liking:

http://cycling74.com/forums/topic.php?id=23608


Viewing 14 posts - 1 through 14 (of 14 total)