DonationCoder.com Software > Find And Run Robot
ALT key problem
ayryq:
Also, this whole thread (and a couple others) got pushed to rss, one post at a time. Kind of weird.
tomos:
Since the keyboard interface provides only one action for the ALT key, both ALT keys should work to perform the designated action.
-mikeyww (November 13, 2016, 06:41 PM)
--- End quote ---
right Alt (AltGr) often works the same as Ctrl+Alt (seems to be the other way round: https://en.wikipedia.org/wiki/AltGr_key#Control_.2B_Alt_as_a_substitute although I have some older software where AltGr will work same as a Ctrl+Alt+ shortcut)
Some interesting related queries:
Can I make Ctrl+Alt NOT act like AltGr on Windows? (http://superuser.com/questions/592970/can-i-make-ctrlalt-not-act-like-altgr-on-windows)
How to globally map AltGr key to Alt key? (http://stackoverflow.com/questions/229633/how-to-globally-map-altgr-key-to-alt-key)
Why does Alt Gr have the same keyCode as Ctrl? (http://stackoverflow.com/questions/17857404/why-does-alt-gr-have-the-same-keycode-as-ctrl)
wraith808:
Since the keyboard interface provides only one action for the ALT key, both ALT keys should work to perform the designated action.
-mikeyww (November 13, 2016, 06:41 PM)
--- End quote ---
Actually, that's incorrect. They give different virtual keycodes, for the express means of using them differently.
The Virtual Key Code for Alt is VK_MENU, but is extended into VK_RMENU, and VK_LMENU.
Try CTRL+ALT+DEL using the keys on the right side of the keyboard. It doesn't work. So this is more a function of implementation, than error. And if the workaround works, it seems that it may be functioning as designed- that's mouser's call, though it will affect at least myself if he does change it.
The distinct Virtual KeyCodes from MSDN:
VK_MENU
0x12
ALT key
VK_LMENU
0xA4
Left MENU key
VK_RMENU
0xA5
Right MENU key
To Tom's excellent point, when you press right alt you get the following:
vkCode: 162, wparam: 260, lparam: 3398032
vkCode: 165, wparam: 260, lparam: 3398032
And when you release, you get the following:
vkCode: 162, wparam: 257, lparam: 3398032
vkCode: 165, wparam: 257, lparam: 3398032
It's sending two keys - the shortcut for CTRL+ALT.
AltGr+Del used to do the same as CTRL+ALT+DEL, but it's handled at a lower level than normal key combinations now.
mikeyww:
I haven't made myself clear. The following screenshot shows that pressing ALT plus a number key should launch a program.
I would like this FARR feature to work with both ALT keys.
mouser:
You are correct, I will make it so that either alt button works in launching items with that option.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version