コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();
            LogText.Focus();

            _userActivityHook = new UserActivityHook(true, false);
            _userActivityHook.OnMouseActivity += UserActivityHookOnOnMouseActivity;
        }
コード例 #2
0
 private void InputText_MouseWheel(object sender, EventArgs e)
 {
     // move mouse to Log Text
     this.Cursor     = new Cursor(Cursor.Current.Handle);
     Cursor.Position = new Point(Cursor.Position.X - 0, Cursor.Position.Y - 100);
     Cursor.Clip     = new Rectangle(this.Location, this.Size);
     //
     LogText.Focus();
 }