1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[C#]一定時間ごとに自動でちょっとだけマウスを動かすツール

Posted at

一定時間ごとにマウスをちょっとだけ動かすハードウェアがあるということで、
そんなものソフトウェアでやればいいんじゃないかということで実装してみた。

カウントダウンして閾値を超えたらマウスをちょっと動かすだけですね。
右に動かしたら次は左と。

    int x = Cursor.Position.X;
    int y = Cursor.Position.Y;
    appendValue = -appendValue;
    Cursor.Position = new Point(x + appendValue, y);

ソース

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?