INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Reduce error in screen copy due common asynchronous host connection using WaitHostQuiet(0) or other

Reduce error in screen copy due common asynchronous host connection using WaitHostQuiet(0) or other

Reduce error in screen copy due common asynchronous host connection using WaitHostQuiet(0) or other

(OP)
Good day,

I'm trying to copy data from the screen (with Attachmate Extra 6.5) from a Session as fast as possible to avoid Server capacity overload using the following:

CODE --> Extra

Myscreen.SendKeys ("<Enter>")
Myscreen.WaitHostQuiet (0) 'used as time marker to xServerBusy
Myscreen.WaitForCursor 1, 30 


Problem is that at least 30 records were missing from copy to copy due to common asynchronously host connection.

Don't like to think that have to go back and use WaitHostQuiet("whatever amount of time")

Any solutions to mitigate/diminish this asynchronous effect?

Thank you gentleman!

RE: Reduce error in screen copy due common asynchronous host connection using WaitHostQuiet(0) or other

(OP)
Hey remy988, thank you for the informed thread. Seems to work fine.

If you use this method, do you change the position of the cursor during the screen transactions?

i.e.:

CODE -->

...

sess0.moveto 24,80
do until sess0.waitforcursor(1,30)
do events
loop ...

RE: Reduce error in screen copy due common asynchronous host connection using WaitHostQuiet(0) or other

I'd use MoveRelative to move the cursor off the screen rest coordinates.

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: Reduce error in screen copy due common asynchronous host connection using WaitHostQuiet(0) or other

(OP)
Tks SkipVought...it worked really well and fast as possible without copy errors. Was wondering if it's possible to measure the system waiting time and send it to a var/string

did:

CODE -->

sess0.moveto 24,80
sess0.WaitHostQuiet(0)
do until sess0.waitforcursor(1,30)
do events loop

RE: Reduce error in screen copy due common asynchronous host connection using WaitHostQuiet(0) or other

I don't know if Extra VB has the Timer function. You might check VB HELP.

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close