Пример #1
0
        public static void MouseMove(MouseHooker hooker, MouseMessages message, HookStruct str)
        {
            MouseCatcher m = MouseCatcherRef;

            m.Pattern.Actions.Add("WAIT " + m.GetElapsedTime());
            m.Pattern.Actions.Add(str.pt.x + " " + str.pt.y);
        }
Пример #2
0
        public static void RightClickUp(MouseHooker hook, MouseMessages message, HookStruct str)
        {
            MouseCatcher m = MouseCatcherRef;

            if (message == MouseMessages.WM_RBUTTONUP)
                m.Pattern.Actions.Add("RIGHT_CLICK_UP");
        }
Пример #3
0
        public static void LeftClickDown(MouseHooker hook, MouseMessages message, HookStruct str)
        {
            MouseCatcher m = MouseCatcherRef;

            if (message == MouseMessages.WM_LBUTTONDOWN)
                m.Pattern.Actions.Add("LEFT_CLICK_DOWN");
        }