Shift for two actions (Esc and Shift) Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
valdamire
Posts: 2
Joined: 19 Oct 2018, 05:36

Shift for two actions (Esc and Shift)

19 Oct 2018, 05:42

Hey!

May a bit a wired request and may be a bit dumb but... is there a way to make the shift keys to be shifts only when holding them and acts as Esc when just pressing?

Ergodox has this feature in its fw I wonder if its possible with AHK.

Thanks for you answer.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Shift for two actions (Esc and Shift)  Topic is solved

19 Oct 2018, 06:40

idk if thats exactly what u want, but this will Esc only when u release shift and havent pressed any other keys in-between:

Code: Select all

~*Shift Up::
	if (A_PriorKey ~= "(L|R)Shift")
		Send {Esc}
return
valdamire
Posts: 2
Joined: 19 Oct 2018, 05:36

Re: Shift for two actions (Esc and Shift)

19 Oct 2018, 12:59

swagfag wrote:
19 Oct 2018, 06:40
idk if thats exactly what u want, but this will Esc only when u release shift and havent pressed any other keys in-between:

Code: Select all

~*Shift Up::
	if (A_PriorKey ~= "(L|R)Shift")
		Send {Esc}
return
Thanks a lot! It actually works for me.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Araphen, Bing [Bot], doanmvu, uchihito, zvit and 281 guests