Beispiel #1
0
 public clientManger()
 {
     instaces = this;
     ToolClass.GetDataPack    = GetPack;
     ToolClass.outPutInfo     = printInfo;
     ToolClass.isUserDataPack = true;
     ToolClass.msgArrLen      = 10240000;
     bc = new TcpClient(new socketEvent());
     bc.Connect("192.168.5.102", 54321);
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            FileInfo fi = new FileInfo(@"D:\新建文本文档.txt");

            Console.WriteLine(fi.Length);
            //InputSimulator sim = new InputSimulator();
            //sim.Keyboard.ModifiedKeyStroke(VirtualKeyCode.LWIN, VirtualKeyCode.VK_D);

            while (true)
            {
            }
            //switch (k)
            //{
            //    case KeyBoardMsg.AltF4:
            //        sim.Keyboard.ModifiedKeyStroke(VirtualKeyCode.MENU, VirtualKeyCode.F4);
            //        break;
            //    case KeyBoardMsg.AltTab:
            //        sim.Keyboard.ModifiedKeyStroke(VirtualKeyCode.MENU, VirtualKeyCode.TAB);
            //        break;
            //    case KeyBoardMsg.WinD:
            //        sim.Keyboard.ModifiedKeyStroke(VirtualKeyCode.LWIN, VirtualKeyCode.VK_D);

            //        ret
            //            ;
            //TestFunc();
            //while (true)
            //{
            //    Thread.Sleep(50);
            //}
            //mh.SetHook();
            //mh.MouseMoveEvent += mh_MouseMoveEvent;
            //mh.MouseClickEvent += mh_MouseClickEvent;
            //new Thread(TestFunc).Start();
            //while (true)
            //{

            //}
            //isExit = true;


            //return;
            //InputSimulator sim = new InputSimulator();
            //sim.SimulateTextEntry("");
            //sim.Keyboard.KeyDown(WindowsInput.Native.VirtualKeyCode.a)

            //KeyboardSimulator keyboard = new KeyboardSimulator(sim);
            //keyboard.Mouse.LeftButtonDown();
            //while (true)
            //{
            //    //sim.Keyboard.ModifiedKeyStroke(VirtualKeyCode.LWIN, VirtualKeyCode.VK_E);
            //    //sim.Keyboard.KeyDown(VirtualKeyCode.VK_E);
            //    keyboard.Mouse.LeftButtonDown();
            //    Thread.Sleep(1000);
            //}
            //return;

            //string path = @"C:\Users\admin\Desktop\TIM截图20190718104420.png";
            //string p2 = @"C:\Users\admin\Desktop\新建文件夹 (2)\dis.png";

            //string savePath = @"C:\Users\admin\Desktop\新建文件夹 (2)\";
            //int count = 0;


            clientManger cm = new clientManger();

            Bitmap oldMap = null;

            while (true)
            {
                Thread.Sleep(50);
                //Thread.Sleep(1000);
                //if (cm.bc.IsConnect == false)
                //{
                //    cm.bc.Connect();
                //}
            }
        }