LOTUSSCRIPT LANGUAGE
Enters keystrokes in the active window as if they were entered from the keyboard.
SendKeys is not supported on Macintosh and UNIX platforms and is not supported in Lotus Domino and Notes.
Syntax
SendKeys string [ , processNow ]
string
To repeat a keystroke in string, use the code {key count}, where key is the keystroke to repeat, and count is the number of times to repeat it. For example, "{RIGHT 3}" represents pressing the Right Arrow key three times.
Include a space between key and count; otherwise {key count} may be interpreted as a function key specification. For example, "{F 4}" represents pressing the letter F four times, but "{F4}" represents pressing the function key F4.
The SendKeys statement is not legal at the module level.
To send an ordinary keyboard key or sequence of keys, such as A or 8 or DIR, simply include the character(s) in string.
To send non-printing keyboard keys, such as Tab or Backspace, or keys that perform actions in the active window, such as Page Up, use the key code from the following table in string.
SendKeys cannot send keystrokes to a window that is not a Windows or an OS/2 Presentation Manager program, and cannot send the Print Scrn key to any program. Also, SendKeys cannot send keystrokes to an OS/2 Presentation Manager window if that window is in the same process as the program calling SendKeys.
SendKeys generates an "Illegal function call" error if string contains any of the following elements:
Example See Also