[Overwatch] Key --> Mouseclick + Key Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Tinfoil Hat Theory

[Overwatch] Key --> Mouseclick + Key

08 Feb 2018, 12:47

Hi, I'm trying to make a macro to make Doomfist easier to play.

He needs to weave in autoattacks for his combos. So I figured, why not add MouseClick to every abilty Key.

For example:

Code: Select all

e::
Send, {MouseClick}
Send, {e}
The problem is only the MouseClick goes off. His "E" ability does not register. I've tried messing with "$" and Sleep to on avail.

I've also read through this: https://autohotkey.com/boards/viewtopic.php?f=7&t=11084

Do I have to advance to Intermediate steps? Or did I make a mistake somewhere?
Rohwedder
Posts: 7616
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: [Overwatch] Key --> Mouseclick + Key  Topic is solved

09 Feb 2018, 02:28

Hallo,
You can not send {MouseClick}, only {Click}.
Try:

Code: Select all

$e::Send, e{Click}
or

Code: Select all

~e::Click
Tinfoil Hat Theory

Re: [Overwatch] Key --> Mouseclick + Key

09 Feb 2018, 03:44

TYVM. After adding some delay with Sleep. It works.
Tinfoil Hat Theory

Re: [Overwatch] Key --> Mouseclick + Key

09 Feb 2018, 06:54

OK I'm stuck again. I want to add autoattacks infront of my rocket punch. So Click before a RButton.

How do I make this right?

Code: Select all

$RButton::
Send, {Click}
Sleep 1
Send, RButton
return
Tinfoil Hat Theory

Re: [Overwatch] Key --> Mouseclick + Key

09 Feb 2018, 08:47

OK I figured out why this is so hard. Left Click is also the button to cancel rocket punch zzz.

There's no way to rebind the Cancel button (thanks blizzard).

So right now. When I RightClick it sends a LeftClick first. But since the RightMouseButton is held down, it will keep sending LeftClicks. The 2nd LeftClick will insta cancel the rocket punch.

I need a way for it to only send 1 LeftClick.
Tinfoil Hat Theory

Re: [Overwatch] Key --> Mouseclick + Key

09 Feb 2018, 11:46

I'm looking for something along the lines of:

Code: Select all

RButton::
send, {Click}
send, {Click, right}
*** Block LeftClicks ****
return

RButton up::
*** Unblock LeftClicks ***
return
Rohwedder
Posts: 7616
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: [Overwatch] Key --> Mouseclick + Key

10 Feb 2018, 05:12

Hallo,
Try:

Code: Select all

Hotkey, *LButton, Off ;Hotkey *LButton is turned off
Return ;End of Auto-execute Section
*LButton::Return ;Blocks the LButton unless this Hotkey is turned off
$RButton::
	send, {Click}
	Hotkey, *LButton, On
	send, {RButton Down}
	KeyWait, RButton
	send, {RButton Up}
	Hotkey, *LButton, Off
Return
Tinfoil Hat Theory

Re: [Overwatch] Key --> Mouseclick + Key

10 Feb 2018, 13:11

Doesn't work :(
1. The autoattack doesn't go off before the rocketpunch.
2. The rocketpunch gets insta-cancelled.

I isolated the code to figure out what's not working.

Code: Select all

Hotkey, *LButton, On 
Return ;End of Auto-execute Section
*LButton::Return
Going by my understanding, this should disable my Left Mouse Button. This is true for everything, except ingame (have tried fullscreen/windowed).
Tinfoil Hat Theory

Re: [Overwatch] Key --> Mouseclick + Key

10 Feb 2018, 13:14

I have tried running the script in Administer as well.
Tinfoil Hat Theory

Re: [Overwatch] Key --> Mouseclick + Key

11 Feb 2018, 05:53

I found a dirty workaround. I rebinded my rocket punch to my ScrollWheel. Then macro'd my RightClick in autohotkey...

TY for all your help.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Shoobis and 37 guests