Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mutiple tests Mikev Excel Discussion (Misc queries) 2 March 2nd 10 02:20 PM
Mutiple IF(AND) too many conditions rgl2sa Excel Discussion (Misc queries) 8 November 19th 09 08:11 PM
Running mutiple excel sheets on mutiple computers Lost Excel Discussion (Misc queries) 3 January 16th 09 12:32 AM
Countif Conditions - Use of conditions that vary by cell value JonTarg Excel Discussion (Misc queries) 1 May 30th 08 01:21 PM
shade cells based on conditions - i have more than 3 conditions Mo2 Excel Worksheet Functions 3 March 30th 07 07:19 AM


All times are GMT +1. The time now is 03:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"