What is the keycode of the arrow keys in the Numeric keypad? - flex4

I would like to use numeric keypad arrow keys for accessing my mp3 player but I don't find the key codes. I was wondering if the key code exists for those keys.
Serenity.

37 LEFT ARROW key
38 UP ARROW key
39 RIGHT ARROW key
40 DOWN ARROW key

Related

how do I remove LeftCTRL binding from alt gr key?

I have a laptop with an "alt gr" key in the Right Alt position.
This has an extra binding to the left CTRL key so that, in effect, pressing Alt gr is equivalent to pressing Left CTRL + Alt
Using KeyboardStateView utility, i have found that the following are sent on keypress of Alt gr:
17: CTRL key - 0x11;
18: ALT key - 0x12;
162: Left CONTROL Key - 0xa2;
165: Right Menu Key - 0xa5
is there any way to remove the binding to '17 - 0x11' AND '162 - 0xa2' WITHOUT disabling normal function of the Left CTRL key?
I think this will need to be done by altering the registry, I've tried a few keyboard remapping utilities but they don't have the level of functionality I need.
It MAY be possible with autohotkey, but I don't know enough about scripting it, have asked on their forum.

How to type "+" sign with xdotool automation utility?

How to type "+" sign with xdotool automation utility on Linux machines?
Normally this is done using:
xdotool key plus
...however, if you have a Swedish keyboard you typically have a acute/grave accent button just left of the backspace key and in this case you can type an actual "+" character by running:
xdotool key shift+dead_acute
If can't figure out how to type "+", have a look at what key is just left of backspace in your localized keyboard and send the keycode for that to "xdotool key".

How to map mouse left click to left shift key in AutoHotKey?

I need to map mouse left click to left SHIFT key and mouse right click to left ALT key for better productivity :P.
But I DO NOT want to block any of key combinations like CTRL+SHIFT, SHIFT+CTRL etc.
So far, I'm able to get Alt+Tab functionality with (LAlt & *::Suspend, On).
But can't make it work for shift key.
Issue's I need to resolve:
1) not able to type in uppercase with shift+any_key
2) key combinations not working like ctrl+shift+any_key or shift+ctrl+any_key
Here's my script so far:
LAlt & *::Suspend, On
LShift::LButton
LAlt::RButton
Holding LEFT SHIFT key simulates the left click hold which is great and would like to keep it this way.
See modifier symbols about the tilde prefix (~) in particular.
~LShift::LButton
Hope this helps.

Disabling ALT & Application key in Win10 registry

I would like to disable Alt & Application key in windows10 by editing registry key. I found this procedure:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control
and click on Keyboard Layout
on Edit menu click Add value
type in Sancode Map,
click REG_BINARY as the Data Type and than click OK
insert 00000000000000000300000000005BE000005CE000000000
save & restart
as above is for Win keys i wanted to change it for Alt & Application key
codes for Win keys are:
Left Win key -> 0x5B
Right Win key -> 0x5C
codes for Alt & Application keys are:
Application key -> 0x5D
Alt key -> 0x12
so i changed value from:
00000000000000000300000000005BE000005CE000000000
to:
00000000000000000300000000005DE0000012E000000000
...but i doesn't work.
Any suggestions? I suspect value might be wrong but not sure how to validate.
Ok, so
procedure works (verified for Win10 IOT Enterprise 2015 LTSB)
problem was with incorrect mapping for desired keys
with help from #Ilnspectable I found correct mapping which is for Alt & Application keys: 38 & E0_5D respectively
correct value should be:
00,00,00,00,00,00,00,00,03,00,00,00,00,00,5D,E0,00,00,38,00,00,00,00,00
Note that in Windows they using byte format called little-endian (multi byte values are stored in memory from lowest values).
logic explained here

NSMenuItem Key Equivalent set to Enter key from Number Pad

I want to set the Key Equivalent on an NSMenuItem to be the number pad's Enter key. I don't have a 10-key number pad on my desktop, but I was told that Function+Return on the main keyboard would emulate the Number Pad Enter key. However, when I try to do that in Interface Builder in the Key Equivalent field, my cursor just jumps to the next field.
How can I set, in Interface Builder, the number pad's Enter key to the Key Equivalent on an NSMenuItem?
If you'd like to provide the programmatic way to do it in the comments, that's fine and appreciated, but for full Answers to this question, please restrict them to doing it in Interface Builder.
It turns out that using Function+Return on my normal keyboard DID work to put the Keypad Enter key as the key equivalent. I went and got an extended physical keyboard that had a keypad. When I hit the Keypad Enter key in the Key Equivalent field, I got the same behavior I got when I hit the Function+Return. I tested it within the app and using Function+Return to set the key equivalent DID successfully bind that Menu Item to the Keypad Enter key... it's just that Xcode didn't SHOW that any key was really bound.

Resources