Skip to content

Instantly share code, notes, and snippets.

View Shazil2154's full-sized avatar
๐Ÿ˜ƒ

Shazil Sattar Shazil2154

๐Ÿ˜ƒ
View GitHub Profile
@Shazil2154
Shazil2154 / mousemove.ps1
Created July 6, 2023 22:46 — 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
}