Page 1 of 1

Key remapping - erratic and random results

Posted: 30 Nov 2021, 22:02
by romandesign
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.]