Holding key down

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ugochick
Posts: 31
Joined: 23 Mar 2021, 19:35

Holding key down

24 Jun 2021, 13:06

I simplified my prior question. I hope this makes more sense.

How do I make it so that if ^x is pressed, it sends x, but if it's held down, it sends y?
User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Holding key down

24 Jun 2021, 16:12

Code: Select all

$^x::
KeyWait, x, T.3
Send % ErrorLevel ? "y" : "x"
KeyWait, x
Return
ugochick
Posts: 31
Joined: 23 Mar 2021, 19:35

Re: Holding key down

25 Jun 2021, 06:49

thank you my friend.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: RandomBoy, Rohwedder, ruespe and 376 guests