Page 1 of 1

Turn CTRL+APPS into CTRL+SHIFT

Posted: 19 Jun 2021, 21:52
by megavlad
Hello All,
I recently got my hands on this keyboard:
https://trulyergonomic.com/ergonomic-keyboards/best-truly-ergonomic-mechanical-keyboard/

I'm trying to update my standard AHK script to add a new functionality. Because of the physical layout of the keyboard, I remapped (using the builtin keyboard firmware) some of central keys as the APPS key and the CTRL key. Now, I'm trying to map the combination of APPS+CTRL to send CTRL+SHIFT; that would allow me to press CTRL+SHIFT+other-button easily, but I just can't get it to work.

I've tried a few things, along the line of this:

Code: Select all

^AppsKey::
	SendInput {Ctrl down}{Shift down}
return

^AppsKey up::
	SendInput {Ctrl up}{Shift up}
return
I'm on AHK version: 1.1.30.03

I use the APPS key + other keys to send navigation commands, such as Left, Right, Home, End, etc.
Please find attached my current script. Everything in there works fine, except the APPS+CTRL combo.

Re: Turn CTRL+APPS into CTRL+SHIFT

Posted: 20 Jun 2021, 04:48
by safetycar
Read about: #InputLevel

Re: Turn CTRL+APPS into CTRL+SHIFT

Posted: 20 Jun 2021, 16:32
by megavlad
Surrounding all the "AppsKey & X" stuff in one giant #if solved the problem.

#if not GetKeyState("Ctrl", "P")
...
#if


Thanks to @Moo and @ShambleS1980 over Discord server for the help.