Exemple #1
0
 private void BroadcastMessage(SystemWin32.WindowMessage wmsg)
 {
     foreach (IntPtr sink in Sinks)
     {
         SystemWin32.PostMessage(sink, wmsg.msg, wmsg.wParam, wmsg.lParam);
     }
 }
Exemple #2
0
        private void DispatchWindowMessage(SystemWin32.WindowMessage wmsg)
        {
            if (BroadcastKeys.Contains((Keys)wmsg.wParam))
            {
                BroadcastMessage(wmsg);
            }

            if (ConditionalBroadcastOn && ConditionalBroadcastKeys.Contains((Keys)wmsg.wParam))
            {
                BroadcastMessage(wmsg);
            }
        }