예제 #1
0
 internal void guessWindow(IGuesserListener listener, ManagedWinapi.Windows.SystemWindow window)
 {
     foreach (IWindowGuesser g in windowGuessers)
     {
         g.guess(listener, window);
     }
 }
예제 #2
0
 private void listener_EventOccurred(object sender, ManagedWinapi.Accessibility.AccessibleEventArgs e)
 {
     if (nomouse.Checked && e.EventType == AccessibleEventType.EVENT_OBJECT_LOCATIONCHANGE && e.HWnd == IntPtr.Zero && e.ObjectID == (uint)AccessibleObjectID.OBJID_CURSOR) return;
     if (e.HWnd == clear.Handle || e.HWnd == skip.Handle || e.HWnd == list.Handle) return;
     if (skip.Checked)
     {
         skipped++;
         skip.Text = "Skip (" + skipped + ")";
     }
     else
     {
         ListViewItem lvi = new ListViewItem(new string[] { ""+(idx++), e.EventType.ToString(), "0x"+e.HWnd.ToString("x8"),
         "0x"+e.ObjectID.ToString("x8"), "0x"+e.ChildID.ToString("x8"), "0x"+e.Thread.ToString("x8"),
         e.Time.ToString()});
         lvi.Tag = e;
         list.Items.Add(lvi);
         lvi.EnsureVisible();
     }
 }
예제 #3
0
 protected void MouseHook_MouseIntercepted(int msg, ManagedWinapi.Windows.POINT pt, int mouseData, int flags, int time, IntPtr dwExtraInfo, ref bool handled)
 {
     // Translate raw mouse event into individiual events (MouseDown, MouseUp, and MouseMove) and stop the mouse event chain if
     // one of the individual events handled it.
     MouseEventTranslator.TranslateMouseEvent(new LowLevelMouseMessage(msg, pt, mouseData, flags, time, dwExtraInfo));
     handled = MouseEventTranslator.Handled;
 }