Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
WaitForString Mutiple Conditions
I have a macro that is opening an Attachmate Emulator session to access host
data. I am having a delay issue with some customers because I am trying to capture data(using getstring commands) from the the emulator before it has returned it values. I can test a message area on the screen and if it is greater than "" I can assume the screen has returned. With the WaitForString command can I check for "" verses an exact match on a string. The message area may say "Complete" or "Error Code - xxx", that is why I need a generic check. Sample Code: myscreen.SendKeys ("<CLEAR") myscreen.SendKeys ("/for OSINQ<ENTER") myscreen.SendKeys ("<Pf10") myscreen.SendKeys (SoldTo & "<ENTER") DlrNm = myscreen.getstring(6, 9, 36) before DlrNm is assigned I need to put a wait in there. I have code to wait a hard number of seconds, but each user experiences a different delay and I want to make something that is a bit more dynamic. Thanks, |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
WaitForString Mutiple Conditions
Have you tried setting the Wait parameter to true? myscreen.SendKeys ("<CLEAR", wait:=true) -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=181944 Microsoft Office Help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
mutiple tests | Excel Discussion (Misc queries) | |||
Mutiple IF(AND) too many conditions | Excel Discussion (Misc queries) | |||
Running mutiple excel sheets on mutiple computers | Excel Discussion (Misc queries) | |||
Countif Conditions - Use of conditions that vary by cell value | Excel Discussion (Misc queries) | |||
shade cells based on conditions - i have more than 3 conditions | Excel Worksheet Functions |