hold ads instead of toggle

Ask gaming related questions (AHK v1.1 and older)
Beefcake
Posts: 5
Joined: 07 Aug 2016, 14:29

hold ads instead of toggle

23 Aug 2016, 11:01

I am looking for a script to hold down RMB to zoom in instead of the normal toggle function in cs go. If anyone knows of a script like this please link it here or please help me create one, I am NOT looking for a quick switch macro. I would attempt to do it myself but I have tried in the past and I am not very good at it.

So basicly what I need the script to do is this:
IF hold RMB then press "RMB" once
IF release RMB then press "RMB" two times

Thanx in advance
Shadowpheonix
Posts: 1259
Joined: 16 Apr 2015, 09:41

Re: hold ads instead of toggle

23 Aug 2016, 17:46

Try this...

Code: Select all

RButton::
Send {RButton}
Return

RButton Up::
Send {RButton 2}
Return
Last edited by Shadowpheonix on 23 Aug 2016, 17:50, edited 1 time in total.
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: hold ads instead of toggle

23 Aug 2016, 17:47

Try this:

Code: Select all

$*RButton::
	Send {Blind}{RButton}
	return

$*RButton up::
	Send {Blind}{RButton 2}
	retutrn
You may want to prefix your code with an #IfWinActive block, to make the remapping only take effect in the game.
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: hold ads instead of toggle

23 Aug 2016, 17:48

LOL, almost identical. The {Blind} in mine would mean that if you are holding a modifier such as ctrl or shift when you trigger the macro, it will not release them. Plus, you really should prefix hotkeys that send themselves with $
SoRNDM

Re: hold ads instead of toggle

20 Jan 2018, 14:04

Where would you input these scripts into? Like how would you implement these onto your machine?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Shoobis and 130 guests