1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00

1. Adding missing definition for MNG_KVM_KEY_UNICODE

2. Updated Windows Unicode KeyPress
3. Fixed bug with self update that causes update to fail for older service installations
This commit is contained in:
Bryan Roe
2020-11-17 23:47:29 -08:00
parent ea3a6af192
commit 2fc2206eb9
5 changed files with 6 additions and 8 deletions

View File

@@ -381,9 +381,7 @@ void KeyActionUnicode(WORD unicode, int up)
key.type = INPUT_KEYBOARD;
key.ki.wVk = 0;
key.ki.dwFlags = KEYEVENTF_UNICODE;
if (up == 1) key.ki.dwFlags = KEYEVENTF_KEYUP; // 1 = UP
else if (up == 3) key.ki.dwFlags = KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP; // 3 = EXUP
else if (up == 4) key.ki.dwFlags = KEYEVENTF_EXTENDEDKEY; // 4 = EXDOWN
if (up == 1) key.ki.dwFlags |= KEYEVENTF_KEYUP; // 1 = UP
key.ki.time = 0;
key.ki.wScan = unicode;
key.ki.dwExtraInfo = GetMessageExtraInfo();