Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off & title Swap mouse buttons
- set "s1=$m='[DllImport("user32.dll")]public static extern Int32 SwapMouseButton(Int32 bSwap);"
- set "s2=public static void SwapMB(){ int isright=SwapMouseButton(1); if (isright != 0) { SwapMouseButton(0); } }';"
- set "s3=add-type -name Import -member $m -namespace Dll; [Dll.Import]::SwapMB();"
- set "ps_swapmousebutton=%s1%%s2%%s3%"
- call powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -Command "%ps_swapmousebutton:"=\"%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement