|
-
Nov 12th, 2007, 08:59 PM
#1
Thread Starter
New Member
On error code
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|