Questions tagged [scancodes]

73 questions
0
votes
1 answer

Identify key uniquely from WM_KEYDOWN message

I tried to use the virtual key code provided by wParam, however that didn't work very well: multiple keys mapped to the same key code some keys were not recognized at all virtual keys seemed to be adapted to the keyboard layout (which i don't…
HolleBolzen
  • 1
  • 1
  • 1
0
votes
1 answer

How does 4 byte scancode get mapped to keycodes in Linux?

I was messing around with scancodes and keycodes in Debian Buster and I've found something strange. Using sudo showkey -s I discovered that the scancode of the PrintScreen/SysRq key of my USB wired keyboard is 0xe0 0x2a 0xe0 0x37 0xe0 0xaa 0xe0…
0
votes
0 answers

How do I use 1x scancodes as argument in SendInput

I'm using SendInput() (using InteropServices, C#) with scancodes as argument. However, I don't manage to send combinations using R-ALT. I'm using Mac with Bootcamp and the R-ALT scancode is registered as 1x38 (R-ALT + L-Control) but I can't use 138…
agoSwitch
  • 21
  • 2
0
votes
1 answer

How to convert between keyboard scan code and USB keyboard usage index?

I'm working with a Windows virtual keyboard driver to generate keystrokes, and it requires specifying keys using the USB keyboard usage index. (See "Windows Platform Design Notes - Keyboard Scan Code Specification" appendix C for a list of usage…
Bri Bri
  • 2,169
  • 3
  • 19
  • 44
0
votes
1 answer

Why do winapi functions need scan code although there is a keyboard driver?

In msdn, typedef struct tagKEYBDINPUT { WORD wVk; WORD wScan; DWORD dwFlags; DWORD time; ULONG_PTR dwExtraInfo; } KEYBDINPUT, *PKEYBDINPUT, *LPKEYBDINPUT; wVk Type: WORD A virtual-key code. The code must be a value in…
op ol
  • 705
  • 4
  • 11
0
votes
1 answer

Retrieving keyboard-layout-independent typed characters from scancodes in Rust

I would like to write a low level, fast text editor in Rust. For graphics/windowing, I was planning to use SFML for easy fast cross-compatibility between Windows, macOS, and Linux. Now, the issue I've come across is when typing characters in a text…
deeBo
  • 836
  • 11
  • 24
0
votes
0 answers

How to translate Ordinary scancodes to ascii charcters

I'm need to convert these scans code to ascii charters. in this website : 1.4 Ordinary scancodes for example : char scan_codes[]={ 0x1e,0x1e,0x1f,0x1f,0x20,0x20 }; char* result = translate_keys(scan_codes); //output after translation could be …
0
votes
1 answer

How to use weird characters in VSCode keybindings

I'd like to create a keybind using AltGr + f, or maybe a keybind with the result of this 2 together (đ), I tried using scan codes already, but they don't seem to work as a key, how can I do this?
N. Joppi
  • 416
  • 5
  • 9
0
votes
1 answer

Direct Input command not working while making gamebot

I've been working on automating GTA V with python. To give inputs, I tried "pyautogui" but it wasn't working as expected. I googled and got this solution on stackoverflow (and thank you, Sentdex!): Simulate Python keypresses for controlling a…
Parthik B.
  • 472
  • 1
  • 5
  • 15
0
votes
0 answers

How to combine characters into a string one-by-one in NASM?

The problem Discovering question ASM Replacing scancodes with ASCII characters and using it's answer(a bit modified to treat special characters not as ASCII but to move specific value to a buffer) i was able to get individual characters from…
0
votes
1 answer

Keyboard key numbering

I am creating a database of keyboards using MySQL and PHP. Is there a standard way to number the individual keys on a keyboard based on their physical position? I want to use these numbers in the index column of my database. I have been looking at…
posfan12
  • 2,541
  • 8
  • 35
  • 57
0
votes
1 answer

Linux asm - int 16h analogue to read raw keyboard scancodes

For my studies I need to write a program on asm, which will wait until the keyboard key is pressed, and then print it's scan-code and ASCII code of the key's character. I know that BIOS's int 16h can do the job, but I am using Linux right now and…
Verloren
  • 859
  • 1
  • 8
  • 18
0
votes
0 answers

Change and refresh at runtime Generic.kl file

I'm doing a code that can remap keys on android. To do this i get the input from the user and with a standard map of scancodes and keycodes i rewrite at runtime the Generic.kl file changing the choosen element. After this i save and reboot. The…
0
votes
4 answers

How to determine if a numpad is present and how to obtain the scan code for the numpad enter key?

I would like to add certain behavior to my program that binds a function to the numpad enter key, if it is present, or bind an alternate key if it is not. According to Microsoft: The scan code is the value that the keyboard hardware generates when …
Zhro
  • 2,546
  • 2
  • 29
  • 39
0
votes
1 answer

Where are IBM scan codes used?

This page has a list of keystrokes and their corresponding scan codes. I'm confused by this. I noticed each scan code starts with a NUL character. Does this mean when the input stream receives a NUL character, that means to interpret the next…
Shoblade X
  • 363
  • 2
  • 9