Is there a way of waitfor condition where there can be more than 1 target string. This would be like having 2 waitfor statements running simultaneously
example
proc main
string a
waitfor string ;I know waitfor is conditional and
;suspend until target is met up to timeout
if a == "end of report"
transmit "^C"
endif
if a == "press enter to continue"
transmit "^M"
endif
etc
I don't know how comread can help. The response from the host can vary when downloading reports. Screen prints require the use of enter between screens. for each screen I take a snapshot. The last screen will display a message to press break. Reports can have varying number of pages. Because of the emulation, capture doesn't provide desired results regardless of capture options (filtered,raw,as it appears on screen, etc)
example
proc main
string a
waitfor string ;I know waitfor is conditional and
;suspend until target is met up to timeout
if a == "end of report"
transmit "^C"
endif
if a == "press enter to continue"
transmit "^M"
endif
etc
I don't know how comread can help. The response from the host can vary when downloading reports. Screen prints require the use of enter between screens. for each screen I take a snapshot. The last screen will display a message to press break. Reports can have varying number of pages. Because of the emulation, capture doesn't provide desired results regardless of capture options (filtered,raw,as it appears on screen, etc)