Skip to main content
edited title
Link
Lightness Races in Orbit
  • 386.8k
  • 77
  • 670
  • 1.1k

Mac OS - How send unicode character to active application?

Source Link
user486134
  • 425
  • 1
  • 6
  • 14

Mac OS - How send unicode character to active application?

I need something like SendInput in Windows API.

I see this method, I don't know there is anyway to convert unicode character to virtual Key code.

CGEventRef CGEventCreateKeyboardEvent ( CGEventSourceRef source, CGKeyCode virtualKey, bool keyDown );