SHARE
TWEET

mouse

a guest Oct 16th, 2019 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top