Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGEventMBS class.

CGEventMBS.EventSource as CGEventSourceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics Events MBS MacCF Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The event source.

(Read and Write property)

CGEventMBS.Flags as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics Events MBS MacCF Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The event flags of an event.

(Read and Write property)

CGEventMBS.Timestamp as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics Events MBS MacCF Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The timestamp of an event.

(Read and Write property)

CGEventMBS.Type as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics Events MBS MacCF Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The event type of an event (left mouse down, for example).

See constants like kCGMouseButtonLeft.
(Read and Write property)

CGEventMBS.UnicodeString as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics Events MBS MacCF Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The Unicode string associated with a keyboard event.

By default, the system translates the virtual key code in a keyboard event into a Unicode string based on the keyboard ID in the event source. This function allows you to manually override this string. Note that application frameworks may ignore the Unicode string in a keyboard event and do their own translation based on the virtual keycode and perceived event state.
(Read and Write property)

Some examples using this property:

CGEventMBS.UnicodeStringLength as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics Events MBS MacCF Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Return the length of the unicode string associated with a keyboard event.

(Read only property)

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...