Guest User

Untitled

a guest
May 19th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #This is meant to be used with minecraft to slow down vertical movement of the
  2. #mouse cursor.  Unfortunately due to how it is done, it is difficult to actually
  3. #prevent any vertical mouse movement.
  4. #
  5. #To exit the program, alt tab out of the game and move the mouse to the very
  6. #left of the screen.
  7.  
  8. [void] [Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
  9. [void] [Reflection.Assembly]::LoadWithPartialName("System.Drawing")
  10.  
  11. #Number of seconds to sleep before detecting cursor center
  12. Start-Sleep 2
  13.  
  14.  
  15. $mousecenter = [System.Windows.Forms.Cursor]::Position.Y
  16.  
  17. do
  18. {
  19.     [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point([System.Windows.Forms.Cursor]::Position.X, $mousecenter)
  20. } while ([System.Windows.Forms.Cursor]::Position.X -gt 0)
Add Comment
Please, Sign In to add comment