On-Screen Keyboard with webBrowser

Hello, I’m new to Touchdesigner and I’m trying to figure out how to get the onScreenKeyboard to work with the webBrowser. Both components come from the Palette.
I’m able to see the text from the onScreenKeyboard, when I attach a Text Dat.
I’m also able to open a URL in the webBrowser, but inside the webBrowser, each text field will only take input from my physical keyboard.
I already tried to work with ChatGPT to guide me, but it did not work.
Any help is greatly appreciated. Thank you

Hello,

To make that work, you need to modify a bit the webBrowser from the palette. Basically, you need to add a callback script for the changes of your onScreenKeyboard.

You want to catch changes that happen in the second output from the onScreenKeyboard operator. That DAT tells you what keys were pressed and other info.

I have put together an example for you that does what you want. See inside the webBrowser operator to see what I added. It is enclosed in a yellow anotation (I’m assuming you are using latest version of TD). The websites you open will now accept keyboard input, as well as the input from onScreenKeyboard.

Best,
Darien

KeyboardAndWebBrowser.tox (32.3 KB)

Hey Darien,
Thanks a lot, that’s really amazing from you! I will check it out now.

1 Like