示例#1
0
        bool hook_OnMouseXButtonUp(object sender, MouseUpEventArgs e)
        {
            Output("\r\n{0}: Up" +
                   "\r\n  On Screen :" +
                   "\r\n    ({1}; {2})" +
                   "\r\n  On Window {3} :" +
                   "\r\n    ({4}; {5})",
                   e.Button, e.ScreenPoint.X, e.ScreenPoint.Y, PInvoke.GetText(e.WindowHandle), e.WindowPoint.X, e.WindowPoint.Y);

            Mouse.Sender.Click(IntPtr.Zero, e.Button, e.WindowPoint.X, e.WindowPoint.Y);

            return true;
        }
示例#2
0
 private bool mh_OnMouseLeftButtonUp(object sender, MouseUpEventArgs e)
 {
     Output("{0}: Up\r\n" +
            "  On Screen : ({1}; {2})\r\n" +
            "  On Window 0x{3:X} :" +
            "    ({4}; {5})",
            e.Button, e.ScreenPoint.X, e.ScreenPoint.Y, e.WindowHandle, e.WindowPoint.X, e.WindowPoint.Y);
     return true;
 }
示例#3
0
        private bool mHook_OnMouseLeftButtonUp(object sender, MouseUpEventArgs e)
        {
            if (Helper.WinAPI.PInvoke.GetForegroundWindow() == Master)
                foreach (var slave in Slaves)
                {
                    //Mouse.Sender.MouseUp(slave, e.Button, e.WindowPoint.X, e.WindowPoint.Y);
                    Mouse.Sender.Click(slave, e.Button, e.WindowPoint.X, e.WindowPoint.Y);
                    LogCallback(string.Format("Mouse up : {0} ({1};{2}). Sended to 0x{3:X}", e.Button, e.WindowPoint.X, e.WindowPoint.Y, slave.ToInt32()), RichLogTextBox.OutputMode.Debug);
                }

            return true;
        }