The requirement is simple: for a set of "source" keys and "target" keys, once the source key is down or up, the system receive the key down and key up event of the corresponding target key, not the source key. The remapping should be in low level, so that even modifier keys are combined, it still works. Below is the example AutoHotkey script. After running the script, whenever the user press the "f" key in the keyboard, the system gets "e". When shift+f, it is remapped to shift+e. Circular remapping should be avoided, thus the f -> e -> k -> n -> ... chain must NOT occur.
#SingleInstance force #NoEnv SendMode Input SetTitleMatchMode 3 f::e p::r g::t j::y l::u u::i y::o `;'::' r::s s::d t::f d::g n::j e::k i::l o::` k::n
I did some research before posting this thread. In the forum, the most similar request I found is Keymapping (*NOT* logging), but it seems no complete solution is given and the scripts are huge. I also tried the "HotKeySet" function and HotKey.au3 script, but they require the modifier keys be explicitly hard coded, therefore have to write a function for each combination of modifier keys.
Is there a existing solution for keyboard remapping with AutoIt? Thank you for your help!
P.S. Is there a way to change my display name in the forum, not the user name? Is it limited? I see a "Display name history" in the control panel, indicating the possibility. Thanks!
Edited by CrendKing, 28 January 2010 - 01:32 AM.