dmccollum
Programmer
- Jul 7, 2006
- 1
I have a tcl expect script that is pretty simple.
It just emulates an operator entering keystrokes to an application via telnet C-VT100 terminal.
Most entries have been simple to do until I need to press the F10 key on a particular screen. Then later I will need to press the F7 key.
Following is a part of the script leading up to where I need to press F10.
Can someone tell me how to send a F10 key to the session.
expect {
timeout {notify_error "Timeout error in doDBMSJobs script"}
"\{"
}
send "x"
while {1} {
expect {
timeout {notify_error "Timeout error in doDBMSJobs script"}
"Download Raw Data or Custom Report?" {break}
}
}
send "RAW\r"
send {^\[\[21\~}
The last line above is the ^[21~ that I got when doing this manually. That I thought was the code for F10 key.
I have found that keysm for F10 is decimal 65479 0r hex 0xffc7.
How do I send that to the application?
Thanks for any asistance!
It just emulates an operator entering keystrokes to an application via telnet C-VT100 terminal.
Most entries have been simple to do until I need to press the F10 key on a particular screen. Then later I will need to press the F7 key.
Following is a part of the script leading up to where I need to press F10.
Can someone tell me how to send a F10 key to the session.
expect {
timeout {notify_error "Timeout error in doDBMSJobs script"}
"\{"
}
send "x"
while {1} {
expect {
timeout {notify_error "Timeout error in doDBMSJobs script"}
"Download Raw Data or Custom Report?" {break}
}
}
send "RAW\r"
send {^\[\[21\~}
The last line above is the ^[21~ that I got when doing this manually. That I thought was the code for F10 key.
I have found that keysm for F10 is decimal 65479 0r hex 0xffc7.
How do I send that to the application?
Thanks for any asistance!