How do I use Rundll32 to swapmousebutton?

前端 未结 5 773
没有蜡笔的小新
没有蜡笔的小新 2021-02-06 10:55

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

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 11:24

    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.

提交回复
热议问题