🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › win32 › inputdev › virtual-key-codes
Virtual-Key Codes (Winuser.h) - Win32 apps | Microsoft Learn
The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system. The codes are listed in numeric order.
🌐
GeoRezo
georezo.net › jparis › mb_r › dll › pages_user › virtual_key_codes.htm
Virtual Key Codes
The virtual-key codes identify various virtual keys. Virtual keys mainly consist of actual keyboard keys, but also include "virtual" elements such as the three mouse buttons. The virtual keys also include many "keys" which usually do not exist at all. A key's virtual-key code does not change ...
🌐
Cherrytree
cherrytree.at › misc › vk.htm
Virtual-Key Codes - Cherry Tree
The following table shows the symbolic constant names, decimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system.
🌐
KbdEdit
kbdedit.com › manual › low_level_vk_list.html
List of Virtual Key Codes
Following is a full list of VK codes that can be assigned to physical keys ("scan codes") in the Low-level editor · The list is divided in two categories:
🌐
IndieGameDev
indiegamedev.net › 2020 › 02 › 08 › windows-virtual-key-codes-and-how-to-use-them
Windows Virtual Key Codes | IndieGameDev
May 7, 2021 - Lookup Windows API Virtual Key Codes by pressing keys on your keyboard. Get instant C++ code to check if that key was pressed.
🌐
GitHub
github.com › sepehrsohrabi › Decimal-Virtual-Key-Codes
GitHub - sepehrsohrabi/Decimal-Virtual-Key-Codes: a simple table of decimal virtual key codes · GitHub
a simple table of decimal virtual key codes. Contribute to sepehrsohrabi/Decimal-Virtual-Key-Codes development by creating an account on GitHub.
Starred by 6 users
Forked by 2 users
Languages   HTML
🌐
Keyman
help.keyman.com › developer › language › guide › virtual-keys
Keys, Virtual Keys and Virtual Character Keys
This matches the key and modifier state that generates this character on the user's base keyboard, accounting for any modifier that might be used to generate the character, including Caps Lock. c matches CAPS+D01 or SHIFT+D01 on US English c matches CAPS+C01 or SHIFT+C01 on French AZERTY + ...
Find elsewhere
🌐
Mjtnet
help.mjtnet.com › macro scheduler knowledge base › help desk › virtual key codes
Virtual Key Codes - Macro Scheduler Knowledge Base
March 23, 2018 - VK_LBUTTON (1): Left mouse button VK_RBUTTON (2): Right mouse button VK_CANCEL (3): Control-break processing VK_MBUTTON (4): Middle mouse button (three-button mouse) VK_XBUTTON1 (5): Windows 2000/XP: X1 mouse button VK_XBUTTON2 (6): Windows 2000/XP: X2 mouse button - (7): Undefined VK_BACK ...
🌐
Rbase
rbase.com › support › rsyntax › virtual_keycodes.html
Virtual-Key Codes (Standard)
The following table shows the constant values and descriptions for the virtual-key codes. The codes are listed in numeric order.
🌐
GitHub
gist.github.com › arubyz › 99626e35acc8dcbcae0df5ebf3eb5a26
Virtual Key Codes · GitHub
Virtual Key Codes. GitHub Gist: instantly share code, notes, and snippets.
🌐
Surround SCM
help.perforce.com › pv-wave › 2017.0 › pvwave_online_help › Foundation › ap.e.virt_keys.html
Virtual Keys
Virtual Key Codes shows the symbolic constant names, hexadecimal values, and keyboard equivalents for the virtual-key codes used by the Microsoft Windows operating system. These codes work in the console window, but not the home window.
🌐
7-Zip Documentation
documentation.help › Far-Manager › virtualkeycodes.html
Virtual key codes - Far Manager Documentation
The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system.
🌐
Bmega
wiki.bmega.net › doku.php
Virtual-Key Codes Table - bbot
virtual_key_codes · virtual_key_codes · External Link: Virtual-Key Codes · Only decimal values are accepted in command, hex values are not supported. E.G: :K_SHIFT 16 SHIFT key » Tibia.SendKey(16) virtual_key_codes.txt · Last modified: 2021/11/15 16:43 (external edit) Show pagesource ·
🌐
Reddit
reddit.com › r/c_programming › how to get a virtual key code from the corresponding character?
r/C_Programming on Reddit: How to get a virtual key code from the corresponding character?
October 11, 2024 -

Hi,

I'm very, *very* new to C programming, please help :3

I want to make a program that types a message for me, like this:

include <stdio.h>

include <windows.h>

include <iostream>

include <conio.h>

using namespace std;

int main()

{

Sleep(3000);

int message_length = 10;

int message[] = {0x44, 0x43, 0x44, 0x43, 0x44, 0x43, 0x44, 0x45, 0x44, 0x45};

INPUT in[message_length*2] = {};

ZeroMemory(in, sizeof(in));

//Keyboard input

int store_input = 0;

for(int i = 0; i < message_length; i++)

{

in[store_input].type = INPUT_KEYBOARD;

in[store_input].ki.wVk = message[i];

in[store_input].ki.dwFlags = KEYEVENTF_EXTENDEDKEY;

store_input ++;

in[store_input].type = INPUT_KEYBOARD;

in[store_input].ki.wVk = message[i];

in[store_input].ki.dwFlags = KEYEVENTF_KEYUP;

store_input ++;

}

SendInput(message_length*2, in, sizeof(INPUT));

return 0;

}

This does work. The program in this case writes "dcdcdcdede", because e.g. 0x44 translates to the "d"-key:

https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes

However, I would like to write a string into the array message[] and then convert it into the hexadecimal values of the corresponding virtual key codes, so that I can quickly change the message array.

E.g.: message[] = "Hello World";

Is there any way of doing this?