Yes, you can mix VK and non-VK in the same layout without worry. You just have to replace the one key from one of my other layouts, and edit that a little.
VK just sends the Virtual key code for the key. The key has a scan code which is what the OS sees when you press a key, then that gets translated to a VK code. After this, the OS will decide what to do with that key press depending on modifier state etc. So in PKL, a VK mapping means that you just send the key's "position" as you say and let Windows handle what happens with Shift/AltGr/etc. A full key mapping in PKL like the one in my previous post, handles these levels and sends an Input Event instead, which is a glyph or similar actual result of a key press.
The columns of a full key mapping are:
SC01a = OEM_3 0 ; : -- dk13 … ; QWERTY pP - dk_umlaut
SC = VK SS L0 L1 L2 L3 L4 ; comment
SC & VK: Scan code (hard) & Virtual Key Code
SS: Shift state (+1 if L0/L1 are non-/shifted versions of the same letter; +4 for L3/L4)
L0–L4: Normal, Shift, Ctrl (not often used), AltGr, Shift+AltGr
Ah, yes – running several keyboard hooking AHK scripts at once can be fun. :-)
Short of poking around for PKL info on forums, I'm not sure what to recommend. Máté Farkas hasn't been in touch for years, and his English wasn't so good. The source code is available, but a tough read. I've a feeling that my posts and the README in my PKL files are among the better information sources these days...
Having puttered around with hardware remapping devices quite a lot lately, I think I may finally be ready for a bout of PKL tweaking now. Let's hope that gets good! :-)
Last edited by DreymaR (17-Mar-2017 10:36:47)