how to post NSSystemDefined NSEvent
-
14-06-2021 - |
Frage
I created a NSEvent
and I want to post it. How can I do that?
It is a NSSystemDefined
type and I want to post it globally. Basically some IOHIDPostEvent
or CGEventPost
equivalent.
Lösung
CGEventPost(0, [ev CGEvent])
does it.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow