Skip to content

Instantly share code, notes, and snippets.

View milandzuris's full-sized avatar
🎯
Focusing on Dzuriš Home

Milan Dzuriš milandzuris

🎯
Focusing on Dzuriš Home
View GitHub Profile
@milandzuris
milandzuris / mousemove.ps1
Created February 9, 2020 21:30 — 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
}