Advertisement
Guest User

mouse

a guest
Oct 16th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Add-Type -AssemblyName System.Windows.Forms
  2.  
  3. while ($true)
  4. {
  5. $Pos = [System.Windows.Forms.Cursor]::Position
  6. $x = ($pos.X % 500) + 1
  7. $y = ($pos.Y % 500) + 1
  8. [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y)
  9. Start-Sleep -Seconds 10
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement