Skip to content

Instantly share code, notes, and snippets.

@ArisBee
Created September 24, 2020 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArisBee/9a894e9f4f9727462e0dbd2f3115245e to your computer and use it in GitHub Desktop.
Save ArisBee/9a894e9f4f9727462e0dbd2f3115245e to your computer and use it in GitHub Desktop.
Move your mouse while away
function MouseWiggle {
Add-Type -Assembly System.Windows.Forms
while($True) {
Start-Sleep -Seconds 1
[Windows.Forms.Cursor]::Position = New-Object Drawing.Point (random 1000),(random 1000)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment