Is it possible to use LuaMacros to intercept keys by scan code or by key code, instead of by the key output? I am looking to do this for a language-independent task, so that the macros are tied to actual keys and do not change when the system language is changed.
Thank you
Use LuaMacros with scan codes or key codes?
Re: Use LuaMacros with scan codes or key codes?
Interesting idea. In fact we have some issues caused by regional keyboard settings so this would also help.
Anyone else interested?
Anyone else interested?

Petr Medek
LUAmacros author
LUAmacros author
Re: Use LuaMacros with scan codes or key codes?
So this:
button == 78
instead of this:
button == string.byte('N')
Or I misunderstood?
button == 78
instead of this:
button == string.byte('N')
Or I misunderstood?
Re: Use LuaMacros with scan codes or key codes?
string.byte does just conversion to number (ascii code).
The change would be specific key will return always the same value (VK key code) with any national keyboard set in Windows.
The change would be specific key will return always the same value (VK key code) with any national keyboard set in Windows.
Petr Medek
LUAmacros author
LUAmacros author
Re: Use LuaMacros with scan codes or key codes?
That's right.
Re: Use LuaMacros with scan codes or key codes?
I think using a scan code would be wonderful. There are a lot of software that assumes specific characters (Adobe software) which gets unreachable on national keyboards, or you sit around wondering how do I do this shortcut.