Untitled
unknown
plain_text
a month ago
582 B
3
Indexable
Add-Type -TypeDefinition @" using System; using System.Runtime.InteropServices; public class Mouse { [DllImport("user32.dll", SetLastError = true)] public static extern void mouse_event(int dwFlags, int dx, int dy, int dwData, int dwExtraInfo); public const int MOUSEEVENTF_RIGHTDOWN = 0x08; public const int MOUSEEVENTF_RIGHTUP = 0x10; public static void RightClick() { mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); } } "@ -Language CSharp # Exécuter un clic droit [Mouse]::RightClick()
Editor is loading...
Leave a Comment