Contact US

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.

Students Click Here

LOOP on cursor position....

LOOP on cursor position....

LOOP on cursor position....

generally i use the code:

Do Until oScreen.WaitForCursor(row, col)

to check cursor position...

but if the cursor dont change position, the until run to the infinity loop, or not?

if yes, instead to use the Until statement is possible to use a for next similar:

for i=0 to 35000
'check psotion of cursor 4,5
next i

if i>35000 then
msgbox("Attention Extra locked,ecc...")
end if

code for this exception, please.

Sorry for my bad English.

RE: LOOP on cursor position....


You would user WaitForCursor after issuing a command to the mainframe from your terminal emulator on your PC, since the mainframe processes asynchronously from your PC. Realize that each screen can have different rest coordinates. So prior to issuing a mainframe command, 1) move the cursor away from the rest coordinates, 2) SendKeys to the mainframe and then 3) start your WaitForCursor loop at the rest coordinates.

You may also want to start a timer before looping if you want to arbitrarily pick a duration to abort the wait AND subsequent processing after perhaps 10 seconds.


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! Already a Member? Login

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