Keyboard capture in background

I wonder if it’s possible for SC to capture keyboard actions in background (not just from a focused view) and how.

Thank you.

Hm, actually I haven’t tried that before. I usually use a View.

I think the way would be to use the KeyState UGen in the server, and let its output trigger a SendReply UGen to send a message back to the language (where an OSCFunc or OSCdef can receive it and take action). That’s if you want it to be “always on,” no matter which window is focused.

hjh

1 Like