Forum Discussion
HKosova
13 years agoSmartBear Alumni (Retired)
First of all, please note that the constant name is VK_RMENU, not RMENU. I assume it's just a misprint in your post, but I'm clarifying just in case.
In my system it showing as Unknown key and virtual key code is - 21. Is this issye with keyboard or anything in the system configuration.
with Sys.Desktop.KeyDown(Win32API.RMENU) is not working.
If the VK_RMENU constant doesn't work for you, it means that the key in question has some other function rather than simply Right Alt. The Virtual-Key Codes article in MSDN says that key code 21 (0x15) corresponds to VK_HANGUL and VK_KANA, that is, Hangul and Kana IMEs. Have you tried using one of these constants instead of VK_RMENU as I previously suggested? E.g.:
Sys.Desktop.KeyDown(Win32API.VK_HANGUL)Does this work for you?
Sys.Desktop.KeyUp(Win32API.VK_HANGUL)
Related Content
Recent Discussions
- 26 minutes agonastester
- 3 hours agosimonaferrara