Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This is meant to be used with minecraft to slow down vertical movement of the
- #mouse cursor. Unfortunately due to how it is done, it is difficult to actually
- #prevent any vertical mouse movement.
- #
- #To exit the program, alt tab out of the game and move the mouse to the very
- #left of the screen.
- [void] [Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
- [void] [Reflection.Assembly]::LoadWithPartialName("System.Drawing")
- #Number of seconds to sleep before detecting cursor center
- Start-Sleep 2
- $mousecenter = [System.Windows.Forms.Cursor]::Position.Y
- do
- {
- [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point([System.Windows.Forms.Cursor]::Position.X, $mousecenter)
- } while ([System.Windows.Forms.Cursor]::Position.X -gt 0)
Add Comment
Please, Sign In to add comment