The following is a technique that I got from Darrel Taylor. It will input a string, and search it for any number of strings.
Note that the "timeout" in the ArrayRead command is the number of characters in the string you are looking for during that pass.
Code:
HSERIN2 300,InputTimeout,[Str CharArray\12\10] ; Take in max 12 chars optionally terminated by LF.
ARRAYREAD CharArray,19,FailedFirst,[WAIT ("FirstStringToLookFor")]
Goto FoundFirstItem
FailedFirst:
ARRAYREAD CharArray,21,FailedSecond,[WAIT (SecondStringToLookFor")]
Goto FoundSecondItem
FailedSecond:
Bookmarks