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.
我创建了一个NSEvent,我想发布它。我怎样才能做到这一点?
NSEvent
它是一种NSSystemDefined类型,我想在全球范围内发布它。基本上是一些IOHIDPostEvent或CGEventPost等价的。
NSSystemDefined
IOHIDPostEvent
CGEventPost
CGEventPost(0, [ev CGEvent])可以。
CGEventPost(0, [ev CGEvent])