Greetings,
Should be able to email the whole .BWS file – or email me the code directly.
The below example works fine for me at debugging speed, however if I were to
run it full speed, it will only key in Boston – that’s because the code moves
faster than the screen does. A Rule command is a “one time check”.
Shell_ """C:\Bss70\HIS Demo\DemoHIS.exe"""
Activate "DemoHIS", True
Connect "DemoHIS", stStream
For i = 1 To 2
If Rule("Boston softw...@2,20&@7,16") Then
Enter "Boston"
End If
If Rule("Boston softw...@2,20&@8,16") Then
Enter "Software"
End If
Next i
Regards,
Thom
Thom C. Blackwell
Product Manager
Boston Software Systems
(866) 653-5105 ex 807
www.bossoft.com <http://www.bossoft.com/>
Sign up for my weekly webinar!
<http://www.bostonworkstation.com/customer_center/special_events.aspx>
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.
From: [email protected] [mailto:[email protected]]
Sent: Monday, August 10, 2009 9:56 AM
To: Talk
Subject: [talkbws] RE: Looping Steps
Morning Thom,
Since you have cautioned not to use the single step looping, I am doing it in a
procedure. Everything seems to work fine , but it always skips the first time.
Pseudo code.
Sub LoopSteps(count)
For i=1 to count
If Rule("ti...@1,1&@4,10") Then
Enter D("1") '1717260
End If
...Some more Cursor and Title checking rules.
next
End Sub
Say in the above code if count is 3. None of the Rules condition are met even
though the Cursor condition meet on the first pass(count=1). The Conditions
seems to meet only on the second count(2) and that too if I run in Debug step
mode.
I put some wait to actually halt the script for a few seconds, but it does not
seem to work. Is there something to refresh the Row,Col so when the code is
switched between main Sub MyScript1 to other Sub routines?
Please let me know if I can send code in an attachment. or if can cut and paste
Rule in an email.
Please help, I spent all weekend trying to get hold of this,
Thank you for your time.
Ranjit M Bendapudi
Meditech Service Center
CSC
5209 Linbar Dr., Nashville, TN 37211
P: +1-615.662-7775 |direct: +1- 615.493.9070 |[email protected] | www.csc.com
This is a PRIVATE message. If you are not the intended recipient, please delete
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any
order or other contract unless pursuant to explicit written agreement or
government initiative expressly permitting the use of e-mail for such purpose.
[email protected]
08/07/2009 07:29 AM
Please respond to
[email protected]
To
[email protected]
cc
Subject
[talkbws] RE: Looping Steps
Greetings,
I always like a challenge – I can do this in one step (although I am cheating
by co-opting a previous step for setting the counter flag) so I guess it really
is two..
Here’s what I am doing:
Step Do Stuff
Rule #1 – when on screen and f(“Count”) does not = 9
Read Row F(“Count”)
Set F(“Count”)=F(“Count”) +1
Rule “”
Rule #2 – when on screen and f(“Count”) does = 9
Goto Step Exit Loop
The trick I am using to keep Step Do Stuff “looping” is the Rule “” command in
Rule #1.
PLEASE, PLEASE use this trick sparingly and only if you know exactly why you’re
doing it.
The Rule command has logic to store what it last evaluated as True. So it’s
behavior when executed is:
“If the condition is true, I will say it is true but if you ask me about the
same condition again and I said it was true last time, I’ll say it’s False.”
This is very, very important behavior, and a behavior you typically do not want
to override like I am doing here. However, my case here – I used the override
because I needed it to say True for the same condition again.
The 3 steps example does not need to do this override trick, because another
Rule, is the count <> or =, is true.
----------------------------------------------------------------------------------------------------------
The below could be copied to the clipboard and “pasted” into a script using the
Paste Rules Script – please do this in a new Project.
Step|Connect|
Rule||
Shell_ """C:\Bss70\HIS Demo\DemoHIS.exe"""
Activate "DemoHIS", True
Connect "DemoHIS", stStream
f("Count")=4
Step|Do Stuff|
Rule|MAIN m...@1,12&@1,22&!f("count")=9|Do Stuff
F("data") =View(Row:=f("Count"), Col:=10, Length:=21) 'Patient Data
msgbox f("Data")
Rule ""
f("Count")=F("Count")+1
Rule|MAIN m...@1,12&@1,22&f("count")=9|Exit Loop
Step|Exit Loop|
Regards,
Thom
Thom C. Blackwell
Product Manager
Boston Software Systems
(866) 653-5105 ex 807
www.bossoft.com <http://www.bossoft.com/>
Sign up for my weekly webinar!
<http://www.bostonworkstation.com/customer_center/special_events.aspx>
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.
From: [email protected] [mailto:[email protected]]
Sent: Friday, August 07, 2009 8:00 AM
To: Talk
Subject: [talkbws] RE: Looping Steps
If you want to loop steps it takes three (well it does for me)
Step 1
Set or define i as a flag...go to step 2
Step 2
Start the incrementing of the i flag
i = i +1 ...go to step 3
Step 3
Check flag
If i <> 5 ....go to step 2
If i = 5 ...go to step ???
Brian Bennett
Affinity Health Systems
Systems Analyst
PBS\Clinic Billing
(920)628-9055
[email protected]
________________________________
From: [email protected] [mailto:[email protected]]
Sent: Thursday, August 06, 2009 1:55 PM
To: [email protected]
Subject: [talkbws] Looping Steps
Hello all,
Is there a way Loop a step?
I am trying to do a set of actions in a Step. And this step has to be done 'n'
times before it goes to next setp or record.
For i=0 to 5
Step="Key Resources"
next i
thanks in advance.
Ranjit M Bendapudi
Meditech Service Center
CSC
5209 Linbar Dr., Nashville, TN 37211
P: +1-615.662-7775 |direct: +1- 615.493.9070 |[email protected] | www.csc.com
This is a PRIVATE message. If you are not the intended recipient, please delete
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any
order or other contract unless pursuant to explicit written agreement or
government initiative expressly permitting the use of e-mail for such purpose.
--- To post a message to this list, send mail to: [email protected] You are
currently subscribed as: [email protected] Unsubscribe in the
customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
________________________________
CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may
contain confidential and privileged information for the use of the designated
recipient(s) named above. If you are not the intended recipient, you are hereby
notified that you have received this communication in error and that any
review, disclosure, dissemination, distribution or copying of it or its
contents is prohibited. If you have received this communication in error,
please notify the sender at the electronic mail address noted above and destroy
all copies of this communication and any attachments. Thank you for your
cooperation.
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
Nzbunrzzz
N�h�֦z���h���+-��ݙ����Z�F�����&b����.����\����&�u���b�隊V�r�y�&R{.n�+�����^r�-�g�q��z�'���y�"��m����
��h�
+��Z�*'r��r�-�g�q��z�nj[�z�+��mjY��