예제 #1
0
        public static void sendTap(int x, int y)
        {
            Packet msg = new Packet();

            msg.ID   = 501;
            msg.Data = coordsToByte(x, y);
            socket.send(msg);
        }
        /*
         * public static void sendLeftMouseClick(int x, int y)
         * {
         *      Packet msg = new Packet();
         *      msg.ID = 101;
         *      msg.Data = coordsToByte(x,y);
         *      socket.send(msg);
         * }
         *
         * public static void sendLeftMouseDoubleClick(int x, int y)
         * {
         *      Packet msg = new Packet();
         *      msg.ID = 102;
         *      msg.Data = coordsToByte(x,y);
         *      socket.send(msg);
         * }
         *
         * public static void sendDrag(int x, int y)
         * {
         *      Packet msg = new Packet();
         *      msg.ID = 103;
         *      msg.Data = coordsToByte(x,y);
         *      socket.send(msg);
         * }
         */
        public static void sendMouseMove(int x, int y)
        {
            Packet msg = new Packet();

            msg.ID   = 104;
            msg.Data = coordsToByte(x, y);
            socket.send(msg);
        }