Skip to content

Instantly share code, notes, and snippets.

View Dante996584984's full-sized avatar

Dante996584984

View GitHub Profile
@Dante996584984
Dante996584984 / mousemove.ps1
Created November 22, 2021 21:06 — forked from MatthewSteeples/mousemove.ps1
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
}