Send message to Keyup or Key?

toneklang's icon

Hello Dear Cyclers

I'm trying to make Max recieve numbers through the object Random connected to metro, into the object key or keyup. What I wan't it to do, is to think that there is being typed on the keyboard, so if I have a Key object, it will translate these numbers into qwerty values. I wan't to fool my computer into thinking that I am typing on the keyboard for a thirdparty program.

Is this possible? Or am I facing too serious endless loop problems with this setup?

/Toneklang

seejayjames's icon

you can't fool key or keyup like this, look for [mxj.autobot] on the forums. it's a Java class that can "create" keystrokes. a third-party program should be able to pick these up.

on mac you can look for the [aka.keyboard] object too.

kaboo's icon

take a look at this thread -> https://cycling74.com/forums/creating-a-keyboard-logger-help
and see post #6 maybe you can modify the patch to your needs.

toneklang's icon

Thank you both very much. Very helpfull information!