-
-
Save hack-r/edd40da72274576afe839183d3ad0cc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -TypeDefinition @" | |
using System; | |
using System.Runtime.InteropServices; | |
public class MouseMover { | |
[DllImport("user32.dll")] | |
public static extern bool SetCursorPos(int x, int y); | |
} | |
"@ | |
[void][MouseMover]::SetCursorPos([System.Windows.Forms.Cursor]::Position.X + 50, [System.Windows.Forms.Cursor]::Position.Y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dfsgsdfgs