Пример #1
0
 public void Run()
 {
     if (_holdMouse)
     {
         _mouseEvents.HoldDownMouse("right");
         return;
     }
     try {
         while (true)
         {
             _mouseEvents.ClickRightMouseButtonEvent();
             Thread.Sleep((int)(_mouseEvents.GetRandomizedClickSpeed(_randomize, _rightClickSpeed, _randomizationAmount) * 1000));
         }
     } catch (Exception exc) {
         //MessageBox.Show(exc.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 public void Run()
 {
     if (_holdMouse)
     {
         _mouseEvents.HoldDownMouse("left");
         return;
     }
     try {
         while (true)
         {
             if (_holdCTRL)
             {
                 MouseEventData.keybd_event(MouseEventData.VK_CONTROL, 0, 0, 0); // HOLD DOWN CONTROL
             }
             _mouseEvents.ClickLeftMouseButtonEvent();
             Thread.Sleep((int)(_mouseEvents.GetRandomizedClickSpeed(_randomize, _leftClickSpeed, _randomizationAmount) * 1000));
         }
     } catch (Exception exc) {
         //MessageBox.Show(exc.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }