Hello all. I am having a problem. I need an on error code for my macro below. The coding below is designed to find IA on screen, once it's found it should go to .FoundTextRow column 3. but if it is not found on the screen then I need it to .TransmitTerminalKey rcIBMreset key and continue. Any suggestions?

Right now, it errors out on runtime error 4132.


displayText = Session.FindText("IA", 8, 75)
.SetMousePos .FoundTextRow, 3
.TerminalMouse rcLeftClick, rcMouseRow, rcMouseCol
.TransmitANSI "x"
.TransmitTerminalKey rcIBMEnterKey
.WaitForEvent rcKbdEnabled, "30", "0", 1, 1
.WaitForEvent rcEnterPos, "30", "0", 20, 41
.WaitForDisplayString "Action:", "30", 20, 33
.TransmitANSI "accomplete"
.TransmitTerminalKey rcIBMEnterKey

Thanks in advance.