Greetings,
There are two properties- Row and Col which return the Row and Column of the
current cursor position.
However, please don't use these if what you want to do is "when the screen
is here, do X" as there are several pre-build BWS commands for doing this -
here they are and why each one would be used:
To "wait" till the screen is in a particular condition use a Pause command:
Pause "@2,4" - Row 2, Col 4.
Setting the Timeout property after your Connect command - i.e. Timeout=10
will cause an error to be thrown if the Pause condition is not satisfied in
the amount of time(seconds) specified by the Pause command.
Sub Example
On error goto Errh:
Connect ....
Timeout=10
Pause "Bogus Screen @1,1"
...
Exit sub
Errh:
If Err=seTimeOut then
DoStuff
End if
End sub
There are several "One time Check" commands- NOTE these just see if the
screen is where you are looking for - these MUST be used inside a loop since
they do not take into account screen timing.
1.Rule - this is what is generated by Rules based scripting. It is a Boolean
function that allows the detecting for more than one condition delimited by
an & at a time:
do
If Rule("[EMAIL PROTECTED],1&@3,5") then
'Dosomething
End if
...
Stable .2
Loop
2. At -same as Rule but only allows 1 condition:
do
If At("@3,5") then
'Dosomething
End if
...
Stable .2
loop
3. PauseLoop- similar in concept to At, but is used for conditionally keying
data:
do
Pauseloop "@3,5", "MyData~" ' will key in MyData followed by an Enter key
(the ~ is the Enter)
...
Stable .2
Loop
Regards,
Thom
Thom C. Blackwell
Product Manager
Boston Software Systems
(866) 653-5105 ex 807
www.bossoft.com
Sign up for my weekly webinar!
LEGAL NOTICE Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only. Access to
this E-mail by anyone else is unauthorized. If you are not an addressee, any
disclosure or copying of the contents of this E-mail or any action taken (or
not taken) in reliance on it is unauthorized and may be unlawful. If you are
not an addressee, please inform the sender immediately, then delete this
message and empty from your trash.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bendapudi, Ranjit
Sent: Monday, December 31, 2007 7:28 PM
To: [email protected]
Subject: [Talk] Cursor Location.
Hello Talk Members,
I am trying to get the current location of the Cursor for a Meditech C/S
screen. I need to know on which row the cursor is at.
Thank you for your Help/Advice.
Happy New Year to all.
Ranjit Bendapudi
FCGIS
[EMAIL PROTECTED]
(615)-507-8054
This email may contain material that is confidential, privileged and/or
attorney work product for the sole use of the intended recipient. Any
review, reliance or distribution by others or forwarding without express
permission is strictly prohibited. If you are not the intended recipient,
please contact the sender and delete all copies.
This email may contain material that is confidential, privileged, and/or
attorney work product for the sole use of the intended recipient. Any
review, reliance, or distribution by others or forwarding without express
permission is strictly prohibited. If you are not the intended recipient,
please contact the sender and delete all copies.