key combinations

Ask gaming related questions (AHK v1.1 and older)
WHADIYOUMEAN
Posts: 9
Joined: 27 Jun 2018, 17:49

key combinations

30 Jul 2018, 12:10

Its really irritating that when I have this in my script:

x::
send {L}
sleep 50
send {X}
sleep 5
send {LButton}
return

when i walk in gaming with WASD that when i press those buttons at the same time as X (when i want to activate it) than it doesn't work
is there a setting / command how I can overwrite that. that even if other buttons are pressed, when pressed X it just does the thing it needs to do, because its frkn irritating. and i dont want to add all the combinations

posted this one earlier at the wrong forum
WHADIYOUMEAN
Posts: 9
Joined: 27 Jun 2018, 17:49

Re: key combinations

30 Jul 2018, 14:24

Please someone respond and help me because im getting triggered because of it, i cant find any on the internet so yea
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: key combinations

30 Jul 2018, 14:46

Try it like this:
$ hotkey prefix prevents the x hotkey from getting activated recursively when sending x.
Also making the sent keys as lowercase will prevent using the shift key to make them uppercase which may or may not cause issues with your WASD.

Code: Select all

$x::
send l
sleep 50
send x
sleep 5
send {LButton}
return
HTH
WHADIYOUMEAN
Posts: 9
Joined: 27 Jun 2018, 17:49

Re: key combinations

31 Jul 2018, 03:16

I think the Shift and alt keys only cause the issue indeed.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: key combinations

31 Jul 2018, 08:07

u need to prefix your hotkey with a wildcard, which will allow it to trigger when pressed in combination with other keys, as follows: *x::
also Send {L} sends Shift + L, and not just simply L. Is that what u wanted to do?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: sofista and 152 guests