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.
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.
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.
Perfect!
Thanks very much! :)