I suggest avoiding Sleeps and using Waits instead.  Sleeps lock up the
script with uncertain effects, whereas Wait allows the both script and
the application to "breath" properly.  Our connection to Client Server
requires a fully awake script to keep track of the progress of the
application.

Also in trying to figure this out, I'd start with even longer Waits at
first.  This way you'll be able to see more clearly what's going on.

Rich McNeil
Boston Software Systems
866 653 5105
www.bostonworkstation.com
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Tilley
Sent: Tuesday, September 09, 2003 11:44 AM
To: Talk (E-mail)
Subject: [Talk] 

This is in the process reports Routine in meditech CS.  This seems to
run on
the development workstation that we have, but not on the runtime only
workstation.  Any Ideas?
I've slowed it way down to see if it was a Timing issue. 


 Key "+{HOME}"   'selects all reports
    Sleep 2000
    
'pushes "P" and and choices to print now at other location
    Key "p"
    Pause "[EMAIL PROTECTED],1"
    Activate ("Print report(s) on:")
    SendKeys "n", True
    Sleep 100
    SendKeys "o", True
    Sleep 100
    SendKeys "{Enter}", True
    

Sleep 5000     'two windows with the same name popup back to back.  For
now
wait a long time.
Activate ("Print report(s) on:")  
    SendKeys "p", True
    Sleep 1000
    SendKeys "{TAB}", True
    Sleep 1000
    SendKeys "a", True                  'key a twice to select the
second
printer that starts with an "a"
    Sleep 1000
    SendKeys "a", True                       ' some where between here 
    Sleep 1000                          
    SendKeys "{TAB}", True              'This tab gets me off of the
printer
select
    Sleep 1000
    SendKeys "{TAB}", True              'T
    Sleep 1000
    SendKeys "O", True                         'and Here


Thanks,
David Tilley
System Administrator
Citizens Memorial Healthcare
1500 N Oakland, Bolivar MO 65613
417-328-6719

 
NOTE:  The information contained in this e-mail, including any
attachments,
is legally privileged and confidential.  It has been provided to you on
the
assurance that the information will be safeguarded, used only for the
purpose for which it is provided, and not released to unauthorized
persons.
If  you are not the intended recipient, you are hereby notified that any
reading, use or dissemination of this message is strictly prohibited.
If
you have received this message in error, please immediately notify us by
telephone at 417-328-6422 and delete this message from your system.
Even
though this e-mail and any attachments are believed to be free of any
virus
or other defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to ensure
that it is virus free, and no responsibility is accepted by Citizens
Memorial Hospital for any loss or damage arising in any way from its
use.



Reply via email to