geekhack

geekhack Community => Keyboards => Topic started by: Jixr on Mon, 17 August 2015, 17:08:05

Title: autohotkey help
Post by: Jixr on Mon, 17 August 2015, 17:08:05
Hi AHK peeps, I need help trying to figure out how to accomplish this.

I want my caps lock key to only work when its pressed and held down.
( similar to how a shift key would work )

Not sure how/if I could accomplish this with AHK
Title: Re: autohotkey help
Post by: Tactile on Mon, 17 August 2015, 19:52:26
This might help...

http://www.autohotkey.com/board/topic/37117-shift-capslock-remapping-problem/

It looks like,to do what you want, you only need the line:

$Capslock::LShift
Title: Re: autohotkey help
Post by: Jixr on Mon, 17 August 2015, 19:56:09
capslock::lshift wont work since number inputs would be symbols.

Using an mx lock as my caps lock key.

Though this script works perfectly

capslock::
setcapslockstate on
keywait capslock
setcapslockstate off
return