Teletype - Programming a keyboard to send stored commands


That makes sense. It just has code smell, to me :slight_smile: but you’re right, this is a small world of 60 lines, and we already make assumptions by calling SCRIPT 2 and such. Updating isn’t a huge burden.

I am also coming to this without much knowledge of the thought & discussion that’s gone into TT development so context like the discussion you linked is awesome.

Also, thanks for what you do! It’s a huge effort.


thinking more about using grid to trigger specific lines, i should just add it to the grid control mode. when you on a script page the grid control allows you to toggle comments for individual lines, i could add 6 more buttons to trigger specific lines (i would have to remove the 2 buttons for “enable all lines” / “disable all lines”):


Here’s a usb stick that can be used to emit keyboard codes. It’s sold as a hacker injection tool but it could potentially work for this use case:


That’s an interesting prospect, but it looks like it just triggers when you plug it in, where I think the group is looking for a selection of such macros, and some sort of interface to choose between them.

Just found the docs. Let’s see if I can confirm that.
…looks like there’s one button. Might be enough for a round-robin sort of arrangement, or a “execute random script”…


So, I can imagine the UI for the first idea. Use the second idea in a 128 line script. Just add scrolling to the code editor. :wink:

This is totally GOTO, by the way. And I love it. Totally understand if there are technical reasons why it is a terrible idea, but GOTO was my intro to making stuff do things in interesting ways. I was 9. It was the most fun I had ever had up to that point.

So wait, is it part of grid mode already?! Man, I need to catch up!


not quite GOTO though - it would just execute the specified line and continue in the current script. GOTO would be like BREAK followed by jumping to the specified line. it’s more like calling a function where a function is a line of code.

you mean executing specific lines from the grid control mode? that hasn’t been done yet, on my todo list.


Well, I hate to mention it, but I recently got a Vortex Race 3 Keyboard and I finally tested out sending the Teletype preprogrammed macros or programmed commands and it doesn’t seem to work.

I’ve updated to the latest firmware, “3.0 KBD Fix”. And when I type, It doesn’t drop any keys. But when I attempt to use the feature of sending key commands via the programming layers the text appears to drop a ton of letters.

For example I programmed the keyboard to write “charlie” when I press the Q key. It works every time on the laptop.

On the Teletype, the first time it writes…

the next time,
one more time,

So, it appears to be dropping a lot of letters for some reason. I did test out a time delay function on the keyboard. Where it will type the macros out much slower, with a half second between the letters. But it still drops the keys. So I dont think it must be a refresh rate or scanning rate that is the issue.

Would anyone here have any ideas what might be happening?

I think I remember seeing Scanner Darkly mentioning somewhere about how keyboard protocol is a bit different and odd, so I think this could be one of those oddities.

But any help is much appreciated! I would love to be able to get this working.



Hi all,

I just wanted to report that I picked up a Genovation CP48 for sending keyboard macros to the Teletype and, after a bit of trial and error, I was able to get it to work with 100% consistency!

At first, it acted exactly like the Vortex Race keyboard in that when I sent a macro to the Teletype it only received a small percentage of the keystrokes, even with extremely long delays. But, because the Genovation comes with a pretty comprehensive software for programming it (windows-only) I was able to find the right balance of settings to get it to work consistently with the Teletype.

Luckily, the programming software offered three types of playback modes for the macros. I had to select the third one called Literal mode, where you have to manually program key-down and key-ups for each character. Even still it wasn’t working 100%. Finally, once I added 40ms delays between each key command it all worked completely consistently.

Just thought I’d let ya’ll know! Have a good one!

Here’s a link to the CP48


thank you for following up and posting detailed info! sorry - meant to reply to your 1st message and forgot. glad you got it working - i don’t think much more could be done on teletype side.


Did you ever managed to get this to work? Curious as I’m thinking of a vortex keyboard to do the same thing too.


I never did get the vortex to work with keyboard macros. I did decide to keep it because it was such a sweet little keyboard for using with the teletype but never got the macros to work. If there was some software side to programming it than maybe there’s a way for it to work but there didnt seem to be much support for that aspect on the site for the keyboard.


I see, what a pity… That said, I’m still interested :slight_smile:

Curious how do the additional layers work, do they work where I’d have to hold down a key to get to some keys such as F1-F10? Or does it work in a way where I just push a button and it puts me in that layer (like Cap-Lock)?