Attempted to utilize today and did not see any results.
Here is my current code.
let sender = KeySender(key: .rightArrow)
sender.trySend(to: "TextEdit")
Some things to note:
- I first attempted to send .rightArrow to an app to advance to the next slide where this key will do that, but nothing happened. I did get errors a bit as I had to poke around for the actual app name, but once I got the app name, still nothing.
- Then I tried a similar task in Slack, moving the cursor, but nothing happened. I also tried to type a letter but nothing happened.
- Finally I switched to TextEdit since that was in the example and tried sending .rightArrow and .c but those didn't work either.
My thought is that I have a permissions problem?
I'm building this as a SwiftUI Mac App in XCode 14.3.1
Attempted to utilize today and did not see any results.
Here is my current code.
Some things to note:
My thought is that I have a permissions problem?
I'm building this as a SwiftUI Mac App in XCode 14.3.1