Skip to content

Instantly share code, notes, and snippets.

@MatthewSteeples
Created February 26, 2015 19:09
Show Gist options
  • Save MatthewSteeples/ce7114b4d3488fc49b6a to your computer and use it in GitHub Desktop.
Save MatthewSteeples/ce7114b4d3488fc49b6a to your computer and use it in GitHub Desktop.
Powershell Script to keep the mouse moving
Add-Type -AssemblyName System.Windows.Forms
while ($true)
{
$Pos = [System.Windows.Forms.Cursor]::Position
$x = ($pos.X % 500) + 1
$y = ($pos.Y % 500) + 1
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y)
Start-Sleep -Seconds 10
}
@IndieKid28
Copy link

@AndrewDavis Who asked? Also judging by how you called someone a "retard" for suggesting something, I'm sure you're the last person to be taking life advices from lmao. Grow up clown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment