Need help with a script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
MetaBeta

Need help with a script

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?
Rohwedder
Posts: 7622
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Need help with a script

22 Jul 2017, 03:01

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
scriptor2016
Posts: 854
Joined: 21 Dec 2015, 02:34

Re: Need help with a script

22 Jul 2017, 03:39

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
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Need help with a script

22 Jul 2017, 04:02

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:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Joey5 and 177 guests