Skip to content

Instantly share code, notes, and snippets.

@hack-r
Created April 7, 2023 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hack-r/edd40da72274576afe839183d3ad0cc4 to your computer and use it in GitHub Desktop.
Save hack-r/edd40da72274576afe839183d3ad0cc4 to your computer and use it in GitHub Desktop.
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)
@hack-r
Copy link
Author

hack-r commented Apr 7, 2023

dfsgsdfgs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment