Skip to content

Instantly share code, notes, and snippets.

@det-peralta
Created November 29, 2022 14:02
Show Gist options
  • Save det-peralta/a1a89f88ff8b24485ec6be017084d554 to your computer and use it in GitHub Desktop.
Save det-peralta/a1a89f88ff8b24485ec6be017084d554 to your computer and use it in GitHub Desktop.
Mouse jiggler
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment