Disable a key and use another one instead

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Master_T
Posts: 1
Joined: 24 Feb 2018, 06:53

Disable a key and use another one instead

24 Feb 2018, 06:59

Hi everyone

I have a laptop with a faulty spacebar (sends random keystrokes even when not pressed) so I wanted to use AHK to disable the spacebar and use a different key instead.
However, I can't figure out how to do this.

I've tried this way:

Code: Select all

Space::return
RWin::Space
But this doesn't work. The spacebar is disabled, but the RWin key is not acting as an "alternative spacebar" as I want.
I also tried:

Code: Select all

Space::return
RWin::Send {Space}
but same result.

Is there a way to do what I want?
gregster
Posts: 9003
Joined: 30 Sep 2013, 06:48

Re: Disable a key and use another one instead

24 Feb 2018, 07:38

Welcome to the forum!
This works for me:

Code: Select all

$Space::return
RWin::Space
The $ prevents that RWin triggers Space::return and gets disabled, too.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ccqcl, digidings, mikeyww and 346 guests