I have a script that watches for the left and right mouse button to be clicked and proceeds with an action. The problem I have is that right mouse button functionality is then replaced with nothing. I figured out how to restore the right mouse button single click, but I can't seem to get the right mouse button click and drag to work.
Anyone have any suggestions?
Code:
; Activate when Right and Left mouse buttons are clicked
RButton & LButton::
;Sleep to make sure it was a quick-click
Sleep 100
; Get state of right mouse button
GetKeyState, RButtonState, RButton, P
;Right Mouse Button has been released continue
IF RButtonState = U
{
;Look for window named "RemoteCaptureTask" and activate it
IfWinExist RemoteCaptureTask
{
WinActivate
WinWaitActive
Loop 2 {
Send {F1}
}
} Else {
msgbox Remote Capture is not open
}
return
}
RButton::Send {Click Right}
Thanks!