SPONSORED LINKS
The example below uses the PressKey method to send keyboard input to an application.
The PressKey method uses the ASCII value for the key.
63 is the ASCII value for F5.
ASCII values for other keys:
F1 - 59
F2 - 60
F3 - 61
F4 - 62
F5 - 63
F6 - 64
F7 - 65
F8 - 66
F9 - 67
F10 - 68
F11 - 87
F12 – 88
1: 'An example that presses a key using DeviceReplay.
2: Set obj = CreateObject("Mercury.DeviceReplay")
3: Window("Notepad").Activate
4: obj.PressKey 63
1 comments:
The PressKey method uses the IBM Scan Code for the key.
63 is the IBM Scan Code for F5.
63 is the ASCII value for "?".
IBM Scan Codes for other keys are listed. There are no ASCII codes for the4 function keys.
Post a Comment