Beispiel #1
0
    static void Main(string[] args)
    {
        Task task1 = Task.Factory.StartNew(() => InterceptKeyboard.Start());
        Task task2 = Task.Factory.StartNew(() => InterceptMouse.Start());

        Task.WaitAll(task1, task2);
        Console.WriteLine("All threads complete");
    }
        // private List<string> words = commaWords.Split(',');
        public FindImageInScreenShot()
        {
            this.InitializeComponent();
            this.screenShotsManager  = new ScreenShotsManager();
            InterceptKeys.OnKeyDown += this.InterceptKeys_OnKeyDown;
            InterceptKeys.Start();
            InterceptMouse.OnMouseLeftButtonDown += this.InterceptMouse_OnMouseLeftButtonDown;

            InterceptMouse.Start();
        }
Beispiel #3
0
        }                                                 // 인터페이스 설정

        private void LOCK()
        {
            InterceptMouse.Start();                                                  // 마우스 블락
            MouseBlockLock();

            SendtoServer_lock();

            ThreadTask();                                      // 작업관리자 프로세스 끝내기 스레드
            timer.Stop();
        }                                                      //PC락
Beispiel #4
0
 private void Form1_Load(object sender, EventArgs e)
 {
     InterceptMouse.Start(this);
 }
Beispiel #5
0
 public MouseService()
 {
     InterceptMouse.Start();
 }