Thanks for the help. I used the following. I had to put a pause in there to capture the correct text.
string sLine
pause 1
termgets $ROW 0 sLine
if strfind sLine "STRING TO SEARCH FOR"
; do code
else
; do other code
endif
I need to read the question on the screen in order to run specific code. I will have one of two scenarios
For example:
1) "Do you want to continue <Press Y to continue or X for exit>?" with the command prompt is waiting
2) "No data is returned <Press the desired menu number>" with the command...
well that's part of the problem...
the client has stated their scripts (which ALL have similar "fluff") run slow.
They can manually perform the actions of the script in seconds....but when they run the script it can take much, much longer.
I was thinking that the exact WAITFOR command was not...
I have recorded a script and it seems the recorder put some fluff in the generated .was file.
Examples:
1) waitfor " ^[[24;46H"
2) waitfor "3 ^[[19;63H"
3) waitfor "Scroll up/down, <ENTER> to select, <F11> when done^[[?25l"
Also for the transmit command
4) transmit "^[[23~"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.