Need help with a script
Posted: 21 Jul 2017, 19:57
I need a script that, when I press right click, it holds it down until I press it again, then it releases it, could anyone help me?
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=34834
Code: Select all
SetTimer,RButton, 200
Return
RButton:
ToolTip, % GetKeyState("RButton") ? "Down":"Up"
Return
RButton::
If GetKeyState("RButton")
Send, {RButton Up}
Else
Send, {RButton Down}
Return
Code: Select all
RButton::
if GetKeyState("RButton")
{
Send {Blind}{RButton Up}
tooltip, Up
}
else
{
Send {Blind}{RButton Down}
tooltip, down
}
return