Remap Capslock to F24

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
c4p
Posts: 21
Joined: 18 Jan 2017, 18:38

Remap Capslock to F24

17 Mar 2017, 21:40

I have a program which will include quite a lot of hotkeys. I am trying not to interfere with hotkeys from other programs. I found a post which showed how to map the caps lock to a hyperkey (ctrl-alt-shift-win). From Here I can !^+#a:: code, etc. This does pretty well for me, but I was thinking Capslock to F24 would be sure to avoid conflicts, however attempting to modify the code did not work.

Code: Select all

*CapsLock::
  SetKeyDelay -1
  Send {Blind}{Ctrl DownTemp}{Alt DownTemp}{Shift DownTemp}{LWin DownTemp}
return

*CapsLock up::
  SetKeyDelay -1
  Send {Blind}{Ctrl Up}{Alt Up}{Shift Up}{LWin Up}
return

!^+#a:: tooltip Hyper-%A_ThisHotkey%
Nightwolf85
Posts: 302
Joined: 05 Feb 2017, 00:03

Re: Remap Capslock to F24

17 Mar 2017, 23:31

Use Input level to accomplish what you want.
https://autohotkey.com/docs/commands/_InputLevel.htm

Code: Select all

#InputLevel 1
*CapsLock::F24
#InputLevel 0
F24 & a::tooltip, Hyper-%A_ThisHotkey%

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: peter_ahk, Spawnova, toddhere, USS_Sandhu and 300 guests