キーを押す操作をエミュレートし、次の画面が到着したときに要求を待ち行列に入れ、処理します。
構文
Q_SENDKEY(argCondition,sKeyName, oPayload)
パラメータ
|
例
Q_SENDKEY("",KeyF12); /* Unconditionally send F12 aginst the resulting screen by queueing up the request */
SENDKEY(KeyEnter); /* Send enter against the current screen */
または
Q_SENDKEY("=Confirm",KeyEnter); /* If the resulting screen is named Confirm, send enter */
Q_SENDKEY("!=Confirm",KeyF12); /* else send F12 */
SENDKEY(KeyEnter); /* Send enter against the current screen */
「SENDKEY ファンクション」も参照してください。