Page 1 of 1

Code waiting 60 seconds

Posted: Sun Oct 05, 2008 2:52 pm
by shaves
I'm using the following code to select an item from a drop down. The drop down looks like a grid but only the first column has data. I have captured the selection and have it stored in an array (DR(6,rt)). This is working but the problem is that it waits 60 seconds before moving on to the next line of code.

Any suggestions to avoid the 60 second wait? Thanks for the help.

MyMacroCode = "CODE:"
MyMacroCode = MyMacroCode + "VERSION BUILD=6140505" + vbNewLine
' MyMacroCode = MyMacroCode + "SET !SINGLESTEP YES" + vbNewLine
MyMacroCode = MyMacroCode + "TAB T=2" + vbNewLine
MyMacroCode = MyMacroCode + "FRAME F=3" + vbNewLine
MyMacroCode = MyMacroCode + "TAG POS=5 TYPE=BUTTON" + vbNewLine
MyMacroCode = MyMacroCode + "FRAME F=26" + vbNewLine
MyMacroCode = MyMacroCode + "TAG POS=1 TYPE=A ATTR=TXT:" & DR(6, rt) & "<SP>" + vbNewLine

Re: Code waiting 60 seconds

Posted: Mon Oct 06, 2008 1:44 pm
by BrianR
Try adding the Timeout Command: SET !TIMEOUT 10

Brian