Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
オンスクリーン キーボードのレプリカとなる OSX アプリケーションを作成しようとしています。別のアクティブなアプリケーションのカーソル位置にテキストを挿入することはできますか? 前もって感謝します!
これが役立つかどうかはわかりませんが、Applescriptでは次のようなことができます
tell application "System Events" keystroke "Stuff here" end tell
したがって、ココア内でそれを呼び出すNSApplescriptか、使用NSTaskして実行することができます
NSApplescript
NSTask
osascript -e 'tell application "System Events" to keystroke "Stuff here"'