Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Scraping" Data after the Client Screen has Refreshed

Status
Not open for further replies.

tescojez

Programmer
May 28, 2007
10
GB
Please can you experts advise me on this.

I'm having huge arguments about this. I need to ensure that the attachmate client has refreshed the screen before my macro starts to gather the data.

Am I right in saying that Sess0.Screen.WaitHostQuiet(g_HostSettleTime) is, in essence, just a "pause".... therefore the screen hasn't, necessarily refresh the screen - before my macro triggers data colection?

Alternatively, grabbing the total area before triggering the next refresh of the screen (in our case <PF8>) via such a function as ".....Area(2,46,2,53)". Then comparing it with an immediate ....Area. Is .Area guaranteed to ensure the screen has refreshed.

What I do is to find a line, at the bottom, (and after any data I need to collect...) And loop until it changes.... then I collect data above.

Is there a more immediate solution to this


 



Hi,

There are several Wait... properties of the screen object. They each have their advantages. Check the FAQ in this forum also.

Use code like this...
Code:
with oScreen
'issue a control command
  .SendKeys "<SomeKey>"
  do
    DoEvents
  loop until .SomeWaitMethod
end with
There's also the OIA XStatus returns the status of the XClock.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top