Key remapping - erratic and random results

Ask gaming related questions (AHK v1.1 and older)
romandesign
Posts: 1
Joined: 30 Nov 2021, 21:55

Key remapping - erratic and random results

Post by romandesign » 30 Nov 2021, 22:02

I need to remap "synthetic keys" generated by a software for a AutoHotkey keys that work within Elite Dangerous game that doesn't understand "synthetic keys". I tried AH but it doesn't work properly - the weird thing is that it works sometimes but very rarely, maybe once every 10 commands (but not the same number every time). Here's my script. It's supposed to receive synthetic key presses (which it does) and send the same ones out. I know my software that operates encoders works fine - if I don't rung AH and just open a Notepad, every encoder click generates a letter just fine, perfectly repeatable. Tested on the first four lines. But when I start AH the game only receives keypresses very rarely. And when I turn off AH, often some keys are "stuck" and I have to press Ctrl a coupld of times to fix it. Please advise.

Code: Select all

$^a::a
$^s::d
$^[::w
$^]::s
$^1::^1
$^2::^2
$^3::^3
$^4::^4
$^5::^5
$^6::^6
$^7::^7
$^8::^8
$^9::^9
$^0::^0
$^q::^q
$^w::^w
$^e::^e
$^r::^r
$^t::^t
$^y::^y
$^u::^u
$^i::^i
$^o::^o
$^p::^p
[Mod edit: [code][/code] tags added.]

Return to “Gaming Help (v1)”