Questions tagged [scancodes]

73 questions
0
votes
1 answer

Are linux/input.h keycodes layout independent?

For example, in input.h, KEY_D is equal to 32. On a QWERTY keyboard, D is the third "printable" key from left on home row. On a DVORAK keyboard, the same key is marked E. So, if I press E on a DVORAK keyboard, will I get KEY_D (32) or KEY_E (18)?
strNOcat
  • 913
  • 2
  • 8
  • 22
0
votes
1 answer

autohotkey scancode in combination

I am having trouble getting either of the following to work: VKFF & a::^a SC163 & a::^a This fails with "invalid hotkey" if I try to run the script. The scan code alone works just fine SC163::^a I am guessing there is a syntax issue... Any help…
Hoax
  • 1,004
  • 2
  • 15
  • 31
0
votes
2 answers

Dvorak vs QWERTY scancodes

Do Dvorak keyboards use the same scan codes as QWERTY keyboards? I mean, does the letter U have the same scan code on both types of keyboards? Or, is it more like taking a QWERTY keyboard and moving the plastic key tops around to mod it into a…
posfan12
  • 2,541
  • 8
  • 35
  • 57
0
votes
1 answer

ASM Replacing scancodes with ASCII characters

I have this code: bits 16 org 0x7C00 start: jmp main key: dw 0x1e, 'a', 0x30, 'b' print: mov ah, 0x0E int 0x10 keyboard: cli in al, 0x64 test al, 1 jz return test al, 0x20 jnz return in al, 0x60 call…
Jiří Velek
  • 153
  • 2
  • 12
0
votes
1 answer

osx mavericks keyboard scancodes map to the same characters independent of language map

In my user profile the keyboard types the same characters independent of the keyboard language setting. Using this four key combinations always produce the same characters: alt-7 { alt-8 [ alt-9 ] alt-0 } My default Layout is German, so it should…
Micha Be
  • 31
  • 2
0
votes
1 answer

How to use scan codes to shut down PC?

Someone asked me to shut down Windows with a Teensy 2.0. I have to use the following scancodes found on win.tue.nl. Set-1 make/brake Set-2 make/brake Power e0 5e / e0 de e0 37 / e0 f0 37 Sleep e0 5f / e0 df e0 3f /…
Zwilk
  • 11
  • 3
0
votes
1 answer

rn-42 bluesmirf HID not sending scancodes?

I am trying to use an arduino with a bluetooth HID module (bluesmirf) to control the volume on my Galaxy tab. I have the arduino setup so that i push a small button that is wired in, and it sends ascii text to the tablet just like a keyboard would,…
-1
votes
0 answers

VirtualBox - Scancode for Win key

I found in this documentation https://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html information about scan codes that can be used in VBoxManage controlvm keyboardputscancode , but I could not find the "Windows" button there,…
-1
votes
1 answer

c++ keyboards kbd.h need more information about processing the state of the modifier keys

I am starting to work with keyboardlayouts on windows using kbd.h. I understood the part scancode->keycode via kbdxx.dll but struggle on the part of processing modifier keys (shift, Ctrl,Alt) especially how the binary coding of the states of those…
user3443063
  • 1,455
  • 4
  • 23
  • 37
-1
votes
1 answer

Forwarding a sequence of scancodes via InputSimulator C#

I'm having a challenge with scancodes, and how to convert these to virtual key codes & ASCII. I'm using the Interception/Oblita library to retrieve all scancodes coming from a barcode scanner. Regular strokes keystrokes like "A" "!" and not an issue…
MMM
  • 311
  • 5
  • 14
  • 30
-2
votes
0 answers

Automating an 'fn + space' keystroke on startup

I just got a new Lenovo Thinkpad E14 Gen 3, and my OCD wants the backlit keyboard on all the time. There is NO setting to keep the light on at all times (not even in the BIOS), and the keystroke to turn it on is 'Fn + Space'. At first, I thought I'd…
Seth Bowers
  • 31
  • 1
  • 6
-2
votes
1 answer

Scan Codes For Arrow Keys

The "processKey" function below is made to recognize what key you have pressed on the keyboard and perform some action based on which key was pressed. All of the keys that are programmed below work. I need to add in to the function the ability to…
BCRwar1
  • 189
  • 5
  • 21
-5
votes
2 answers

how do I extend virtual key codes in the windows API (Win32)?

I want to create a new virtual key code in the windows API that I can assign scan codes to and read with GetKeyState but I cannot find a way to extend the enumeration. I have tried using "unknown" virtual key codes in sharpkeys but some applications…
Bots Fab
  • 139
  • 1
  • 9
1 2 3 4
5