LShift+Space how to toggle on/off with one key CapsLock

Get help with using AutoHotkey and its commands and hotkeys
nas
Posts: 1
Joined: 27 Mar 2019, 08:36

LShift+Space how to toggle on/off with one key CapsLock

27 Mar 2019, 10:31

Hello,

I need to hold LShift+Space for minecraft chest/hopper placing on the fly,
I'm doing it with two keys setup, I wish to do the same thing below using one key only to toggle LShift+Space on/off.

Code: Select all

CapsLock::
	SEND, {LShift Down}{Space Down}
	KeyWait, %A_ThisHotkey%
	SoundBeep 
	Return
+CapsLock::
	SEND, {LShift Up}{Space Up}
	KeyWait, %A_ThisHotkey%
	SoundBeep 
	SoundBeep 
	Return
Thanks

Return to “Ask For Help”

Who is online

Users browsing this forum: boiler, esp901, fscafi, Google [Bot], hasantr, lakozyin and 261 guests