Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Windows.Forms;
- using System.Drawing;
- namespace MouseMover
- {
- class Program
- {
- private static int IDLE_WAIT = 1000 * 60 * 5; // 5 minutes
- static void Main(string[] args)
- {
- while (true)
- {
- var x = Cursor.Position.X;
- var y = Cursor.Position.Y;
- //Console.WriteLine("x = " + x + ", y = " + y);
- Win32.SetCursorPos(x + 1, y + 1);
- Win32.SetCursorPos(x - 1, y - 1);
- System.Threading.Thread.Sleep(IDLE_WAIT);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement