Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I am very impressed with the site and have already recommended it to one of my associates. I was truly impressed with the quickness in which someone actually responded to my question..."

Geography

Where in the world do Tek-Tips members come from?

How too tell when Attachmate is ready to continue?Helpful Member! 

Coby5299 (TechnicalUser)
1 Apr 12 11:02
Hello All,
Im new to the prgammer world so please excuse any lack of knowledge.

I am using the Attachmate Extra system and on one of the screens there is a delay before the resolves show. Is there a way to tell when the screen has updated and the system is ready to move on?

Ive tried using wait codes:
waithostquiet
Application.Wait Time + TimeSerial(0, 0, 1)

but none seem to work. Any other ideas or suggestions. Thanks in advance.  
remy988 (TechnicalUser)
1 Apr 12 13:05
one method i use is to first move my cursor to a position on the screen that isn't used, for example, sess.moveto 1,1
prior to executing my find or enter command. then i just wait until the cursor is no longer on 1,1
something like this

CODE

sess.moveto 1,1
sess.sendkeys ("<enter>")
do:doevent:loop until sess.row <> 1 and sess.col <> 1

 
Coby5299 (TechnicalUser)
1 Apr 12 15:34
Thanks, but the issue appears to be the screen doesnt refresh with the current info before my code continues to run.  for example:

sess.screen.sendkeys("my info <enter>"

''need code to wait until screen has changed with requested info''

range("A1")=sess.screen.getstring(2,15,3)
range("A1")=sess.screen.getstring(2,15,3)

Or is there a way to capture a screenshot and wait until the captured shot is not the same as the new screen?

 
remy988 (TechnicalUser)
2 Apr 12 7:39
hi Coby5299,

what i do is to move my cursor to row1/column1 prior to evoking the enter command. i then use a do:loop until the row position and column position is changed. what that sigifies to me is that the screen has refreshed.

the way  my screen works is that after an enter command, the cursor is expected at a certain position on the screen, and that position will never be 1,1.

give it a try and see if that works.
Helpful Member!  remy988 (TechnicalUser)
2 Apr 12 8:15
Coby5299,

i forgot to include this link
http://www.tek-tips.com/viewthread.cfm?qid=803443

this is another method that i also use.
Coby5299 (TechnicalUser)
3 Apr 12 14:22
Thanks so much, thats seemed to work a lil better!  
remy988 (TechnicalUser)
4 Apr 12 6:43
does "lil better" mean it still needs some improvement?
Coby5299 (TechnicalUser)
10 Apr 12 19:00
It still has a delay. but it is alot better what i tried before
smiler44 (TechnicalUser)
29 May 12 16:22
If you are sending data to attachmate and the screen has to change before sending the next bit of data to attachmate would this work?

Manually send the date, once the screen has updated and changed find a word thats there now that was not there before.
You will need to know the postion on the screen and how many charectors long the word is
you can then use code along the lines of.

bla
bla
bla
enter

Dim foundtext as string

foundtext = (1,3,5)

do until foundtext = "word your looking for"
loop

bla
bla
bla

1 is rowdown, 3 is column along, 5 is the number of charetors long the word your looking for is.

The problem comes when your tabing around the screen, how do you know attachmate is ready for more data

smiler44

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!

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