11 years ago
Number Pad Enter
Hi, I have a system that requires that you use specific Enter keys to be able to progress as it is really old and finicky. Using Keys("[Enter]") uses the normal Enter on the main part of the key...
// Press numpad Enter - JScript
var SC_RETURN = Win32API.MapVirtualKey(Win32API.VK_RETURN, 0 /* MAPVK_VK_TO_VSC */);
Win32API.keybd_event(Win32API.VK_RETURN, SC_RETURN, Win32API.KEYEVENTF_EXTENDEDKEY, 0);
Win32API.keybd_event(Win32API.VK_RETURN, SC_RETURN, Win32API.KEYEVENTF_EXTENDEDKEY | Win32API.KEYEVENTF_KEYUP, 0);