Keyboard shortcuts in a Max patch?

Nov 14, 2010 at 12:33pm

Keyboard shortcuts in a Max patch?

Is it possible to assign certain keys on the keyboard to do things in a max patch?

For instance, if I wanted the space bar to switch a toggle box on or off.

#53304
Nov 14, 2010 at 1:13pm

Yes, it is!
Try using [key] and/or [keyup] with [route] to get what you want.

Although, as far as I know these objects only work if Max is the frontmost application running.

#191764
Nov 14, 2010 at 1:27pm

You would have to use the [hi] object if you want the keys to work regardless of which application is currently in focus but generally [key], [keyup] and [modifiers] are enough.

#191765
Nov 14, 2010 at 2:04pm

Perfect!

Thanks very much! :)

#191766

You must be logged in to reply to this topic.