Turn CTRL+APPS into CTRL+SHIFT

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
megavlad
Posts: 26
Joined: 01 Mar 2018, 00:42

Turn CTRL+APPS into CTRL+SHIFT

Post by megavlad » 19 Jun 2021, 21:52

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.
Attachments
Vladster.ahk
(5.51 KiB) Downloaded 14 times

safetycar
Posts: 435
Joined: 12 Aug 2017, 04:27

Re: Turn CTRL+APPS into CTRL+SHIFT

Post by safetycar » 20 Jun 2021, 04:48

Read about: #InputLevel

megavlad
Posts: 26
Joined: 01 Mar 2018, 00:42

Re: Turn CTRL+APPS into CTRL+SHIFT

Post by megavlad » 20 Jun 2021, 16:32

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.

Post Reply

Return to “Ask for Help (v1)”