Example #1
0
        public static void PostToPSN(CGEvent evt, IntPtr processSerialNumber)
        {
            if (evt == null)
            {
                throw new ArgumentNullException("evt");
            }

            CGEventPostToPSN(processSerialNumber, evt.Handle);
        }
Example #2
0
        public static void Post(CGEvent evt, CGEventTapLocation location)
        {
            if (evt == null)
            {
                throw new ArgumentNullException("evt");
            }

            CGEventPost(location, evt.Handle);
        }
Example #3
0
        public static void TapPostEven(IntPtr tapProxyEvent, CGEvent evt)
        {
            if (evt == null)
            {
                throw new ArgumentNullException("evt");
            }

            CGEventTapPostEvent(tapProxyEvent, evt.Handle);
        }
Example #4
0
		public static void PostToPSN (CGEvent evt, IntPtr processSerialNumber)
		{
			if (evt == null)
				throw new ArgumentNullException ("evt");
			
			CGEventPostToPSN (processSerialNumber, evt.Handle);
		}
Example #5
0
		public static void Post (CGEvent evt, CGEventTapLocation location)
		{
			if (evt == null)
				throw new ArgumentNullException ("evt");
			
			CGEventPost (location, evt.Handle);
		}
Example #6
0
		public static void TapPostEven (IntPtr tapProxyEvent, CGEvent evt)
		{
			if (evt == null)
				throw new ArgumentNullException ("evt");
			
			CGEventTapPostEvent (tapProxyEvent, evt.Handle);
		}