-
Notifications
You must be signed in to change notification settings - Fork 26
/
SwapMouseButton.ahk
29 lines (23 loc) · 1.29 KB
/
SwapMouseButton.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
; ===============================================================================================================================
; Function......: SwapMouseButton
; DLL...........: User32.dll
; Library.......: User32.lib
; U/ANSI........:
; Author........: jNizM
; Modified......:
; Links.........: https://msdn.microsoft.com/en-us/library/ms646264.aspx
; https://msdn.microsoft.com/en-us/library/windows/desktop/ms646264.aspx
; ===============================================================================================================================
SwapMouseButton(Swap)
{
DllCall("user32.dll\SwapMouseButton", "UInt", Swap)
}
; ===============================================================================================================================
SwapMouseButton(1) ; Left-Hand
sleep 10000
SwapMouseButton(0) ; Right-Hand
/* C++ ==========================================================================================================================
BOOL WINAPI SwapMouseButton( // UInt
_In_ BOOL fSwap // UInt
);
============================================================================================================================== */