Triggering another key only after a certain key is released Topic is solved

Ask gaming related questions (AHK v1.1 and older)
vnl
Posts: 2
Joined: 19 Aug 2018, 06:36

Triggering another key only after a certain key is released

19 Aug 2018, 07:33

Hello,

I'm a bit confused and need help on how to write a script for a game, here are some details:

E is one of my item slots from my inventory, and when I press this once, it selects my E item and is previewed as an outline in front of me so I can decide where to put it, and then I have to press mouse1 or LButton to set that specific item in place.

I'd like to make it simpler by having that sequence of actions just on the E key. I tried to do it so that the LButton would be triggered when I release E.

This is what I wrote, but when I hold down the E key while I decide where to put my item, it rapidly goes back and forth between selecting the item without placing it down and doing an attack (attack is on mouse1 / LButton when I don't have an item selected to place down):

Code: Select all

$e::
$e up::
	Send {LButton}
	return
Thank you!
vnl
Posts: 2
Joined: 19 Aug 2018, 06:36

Re: Triggering another key only after a certain key is released

21 Aug 2018, 11:28

swagfag wrote:

Code: Select all

~e Up::Send {LButton}
This worked, thanks a bunch!

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 128 guests