Can max output keystrokes ?

chapelier fou's icon

I didn't find any object able to output keystrokes, any idea ?

Tim Lloyd's icon

I'm not sure about windows, but for mac there is aka.keyboard. There are probably others out there as well!

Olivier Sebillotte's icon

Hi,
for a windows version have a look at Max for Live discussion about "clip delete".
Someone wrote a java object for keystroke working on PC.

Olivier

chapelier fou's icon

Thank you very much, I am on mac, so I am gonna try the aka objects.

chapelier fou's icon

Ok I tried, this seems to work fine. Although, I can't manage to output the cmd key. It seems that it's not the key 55 as shown in the help file.
Any idea about how to find the number of the cmd key ?
I am on os 10.6

Roman Thilenius's icon

 cmd doest have a key number, because it does not do anything when it is pressend alone.

chapelier fou's icon

Well... if so, how can I output, for instance, cmd+Z with the aka.keyboard ?

Tim Lloyd's icon

Does [keydown 55, key 6, keyup 55 ] not work for you? BTW, I don't recommend simulating a command+q, it logs me out rather than quitting max as you would expect.

chapelier fou's icon

Thanks Raja and the others.
I am leaving home for a few gigs in spain, I'll try if I can , or next week...