Page 1 of 1

Need help with a script

Posted: 21 Jul 2017, 19:57
by MetaBeta
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?

Re: Need help with a script  Topic is solved

Posted: 22 Jul 2017, 03:01
by Rohwedder
Hallo,
the first half of the script is for verification only!

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

Re: Need help with a script

Posted: 22 Jul 2017, 03:39
by scriptor2016
you could try this. It will likely need tweaking but it might be a start:

Code: Select all

RButton::
    if GetKeyState("RButton") 
        { 
        Send {Blind}{RButton Up}
        tooltip, Up
        }
    else  
        {
        Send {Blind}{RButton Down}
        tooltip, down
        }
return

Re: Need help with a script

Posted: 22 Jul 2017, 04:02
by BoBo
Interesting. The same text/request as here: https://autohotkey.com/boards/viewtopic.php?f=5&t=34835

That's a "how to fool as much supporters as possible"-kinda game, right?! :wtf: :wtf: :wtf: