Remapping Ctrl using AutoHotKey - autohotkey

Both my Control keys are broken on my Keyboard. In the meantime while I get a replacement, I've been trying to remap it to different keys. I watched a few youtube videos and scoured the web and this is the code I came up with to remap Ctrl to my tilde key (~/`) using AutoHotKey.
LCtrl::`
I am very, very, very bad at coding so I was wondering if anyone could tell me what I did wrong on this script.

You switched them up.
If your control keys are broken, and you want tilde to act as your temporary left control, this should work:
`::LCtrl ; Remap tilde to LCtrl

Related

Disable all shortcuts that include option key modifier only, in VSCode on mac?

Is there any way to mass disable all keyboards shortcuts in VS Code on the Mac, that only use the option key as a modifier?
VS Code essentially has a breaking functionality on the Mac, whereby it uses the option key as a command trigger, even not when in combination with ctrl or command keys. This means that any characters only accessible by the option key aren't accessible. For example, on the US keyboard this mean I can't use 'option-m' to type in the 'ยต' symbol or the accent dead-keys.
I have been told I just need to adjust the default short-cuts, but that will be a lot if I can't do it in batch, hence asking this question.
Note, my current workaround it to type these keys in Chrome and then copy/paste them, which is far from ideal.

Issue with remapping keys using autohotkey in games

I used autohotkey to remap a key that wasnt functioning to another key. it works alright but at some certain areas. it doesn't work fully well with some games. tried a lot of modifications but still the same result. then again im a newbie in using autohotkey so any insights on what i could do to fix it.

Remap meta key to other key on the keyboard

I have a programmable mechanical keyboard and can place any key anywhere.
At our company we recently switched to windows PCs and so that broke my emacs configuration because of the dreaded windows key which I tried to map to Meta but never got it to work.
Basically I use tigervnc to run vnc session that runs on linux.
Running emacs under linux in the VNC on a windows machine is a pain.
Every time I click the windows button to act as a meta the windows menu popup.
Anyways, I wonder if I can map Meta key to say "insert key", and the program the keyboard to have "insert" in place of "windows key" and vice versa.
I am also using ALT for other configurations so I don't want to map meta to ALT since I sometimes use all three combinations "Ctrl+ALT+Meta"+F-keys.
Is there a way to do so?
It would help if you can tell us which keyboard you own.
If it supports QMK firmware, you can just create two layers of keymaps for regular Windows usage and for VNC.
I think you will need to peruse Keymaps for Translating Sequences of Events (function-key-map et al).

Emacs tty evil / viper ESC key stand-alone

There are several vim clone packages for Emacs (Evil, Viper..). These packages have a special built in functionality where they remap the Escape key for tty users. I'm not sure how this is done (With a timeout?).
I'd like this functionality as well however I don't want to use the entire Evil / Viper package, I only want the Escape key functionality. This is because I use God Mode, basically Vim's normal / Insert mode with emacs keybindings instead. It doesn't however have a solution for the TTY Escape key like Evil / Viper do. My Elisp isn't really good enough to implement this myself.
So if there is a stand alone package for the escape key issue I'd love to hear about it.
This doesn't /really/ answer my question but I've found something nice that solves my problem.
Xcape is a tool that you can use change the behavior of a key. For example if you run this command:
xcape -e 'Control_L=Control_L|G'
When pressing Left Control and releasing right away, it will act as Control-G. If you hold down Control it will simply act as Control normally does.
Now if I remap C-g to active God-mode I get the expected behavior in the terminal as well. And you can change the keys to however you want.
As I said this doesn't really answer my question but it does solve the problem. So I'll just leave this answer for other people to find.

Two separate keyboards, two separate spacebars

Basically I've used 2 keyboards for a very long time for the sake of personal convenience, but now there's something that's really bugging me. I'd like to remap the spacebar on my second keyboard to w/e so that I can play a particular game with two separate space bars.
Problems I've encountered so far is that keyboard remapping software tend to remap the keys for both keyboards. Or the remaping doesn't work in-game although it seems to work fine in notepad or such. Mostly likely since the remapping occurs on a higher level then where the game is fetching it's inputs.
Here's what did on HIDmacros;
For the trigger kbd6 32 ()
HIDMacros.SendKeys "p"
Not much but I'm not too savvy in this field haha
Does anyone know how I may achieve this?
-Edit: Oh and the ability to "hold" the key is a must, or else they'd be no point in doing this :/. I'm thinking hardware modifications at this point haha
I was able to use AutoHotKey AHKHID script and SharpKeys to accomplish something similar.
Using SharpKeys I remapped the key (in your case it's spacebar) to some fictitious key.
Then using AutoHotKey with AHKHID script, I was able to listen to strokes on that key, and determine from which device it was sent -
Then I would simulate the wanted key stroke.
I believe this could work in your situation (also, I simulate the up and down strokes, so "holding" works).
I've posted the full solution on the AutoHotKey's forum:
http://www.autohotkey.com/board/topic/38015-ahkhid-an-ahk-implementation-of-the-hid-functions/page-29#entry631055
Good luck