I\'m repeating a question from another forum, as I\'d like the same answer.
From MSDN\'s SwapMouseButton Function.
How do I pass boolean data from
A shorter swapper in C:
#include
int main()
{
if (SwapMouseButton(TRUE))
SwapMouseButton(FALSE);
return 0;
}
Install Windows SDK and Compile in x86_x64 Cross Tools Command Prompt via eg. cl swapmbtn.c "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x64\user32.lib"
Rename main
to WinMain
to prevent the console window flash.