[ |../../index.htm#lansa/lansa050_0975.htm]
現在地: RAMP-TSガイド > スクリプト > 使用方法 > Q_SENDKEY ファンクション
Q_SENDKEY ファンクション
キーを押す操作をエミュレートし、次の画面が到着したときに要求を待ち行列に入れ、処理します。
構文
Q_SENDKEY(argCondition,sKeyName, oPayload)
パラメータ
argCondition |
任意。以下の値として渡すことができます。
|
|---|---|
sKeyToSend |
必須。キーの名前を含む文字列。詳細は、「SENDKEY ファンクションのファンクション・キー名」を参照してください。 |
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 ファンクション」も参照してください。
[ |../../index.htm#lansa/lansa050_0975.htm]