Skip to content

Instantly share code, notes, and snippets.

View trumb's full-sized avatar
💭
I may be slow to respond.

Maurice Brown trumb

💭
I may be slow to respond.
View GitHub Profile
@trumb
trumb / mousemove.ps1
Created July 6, 2021 19:13 — 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
}