This function sends a host key to the server in a Genie or a Rich Display session. For Rich Displays, the appropriate AID key is sent to the back-end program; however, no response indicator is set by this function.



pressKey("Enter");  // send the enter key
setCursor(24, 1); pressKey("F1");  // set cursor to line 24 and send F1
pressKey("Enter", true);  // send the enter key on a timeout
pressKey("Enter", "F3");  // In Genie, send the enter key, then the F3 key