Title: Message
Hi Peter
Excellent idea - so simple!
Michelle
 
617-665-3432
617-546-7770 pgr.
Clinical Application Analyst
CHA Information Technology
[EMAIL PROTECTED]
-----Original Message-----
From: Turner, Peter [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 9:56 AM
To: [EMAIL PROTECTED]
Subject: RE: [Talk] Meditech C/S drop down menu lost focus with Timeout

Could you move the routine in the menu to it's own desktop icon?  I have done that on a couple that were buried down into two or three menus.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barker-Lacerda , Michelle
Sent: Thursday, August 05, 2004 8:38 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [Talk] Meditech C/S drop down menu lost focus with Timeout

Hi Bernie
 
No screen saver - It's locked by user with "Ctrl+Alt+Del - lock computer". Any processes will still run in the background, and this script usually runs without a problem. Where it runs into trouble (if it does fail) is at the point that the script hits enter to display a drop down menu on the Meditech screen. The menu never drops (these types of menus lose focus and close very easily even w/o scripting). In the script, Meditech actually stalls out about 2 steps before the timeout line - the script continues on though until the pause for title - then initiates the error routine. If I don't put any error handling in the script it runs okay most of the time. We are waiting on server hardware so I can move this script to a secured location. I think that's going to be my only answer. This just appears to be one of those Meditech-isms. In the mean time I've set up a routine at the end of the script to send me a page when it's completed. It drives me nuts going off four time each morning, but at least I know it ran each time.  :)
 
Thanks
Michelle
 
617-665-3432
617-546-7770 pgr.
Clinical Application Analyst
CHA Information Technology
[EMAIL PROTECTED]
-----Original Message-----
From: Bernie Menocci [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 2:06 AM
To: [EMAIL PROTECTED]
Subject: RE: [Talk] Meditech C/S drop down menu lost focus with Timeout

What do you mean by locked?  I found that with XP if you use the Screen Saver to lock the PC that there is a problem when you try to respond to anythiing  because the Screen saver is not getting the needed password.  Have you tried to run it in a secured location without the screen saver password security?


>>> [EMAIL PROTECTED] 8/4/2004 2:54:37 PM >>>

Try something like to reset the Timeout:

 

    Enter ""
    Timeout = 10
    Pause "Print Queued [EMAIL PROTECTED],1"

        Timeout = 0
    Pause "@3,8" '*** Report Type prompt

 

Rich McNeil

Boston Software Systems

866 653 5105

www.bostonworkstation.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barker-Lacerda , Michelle
Sent: Wednesday, August 04, 2004 3:28 PM
To: [EMAIL PROTECTED] COM ([EMAIL PROTECTED])
Subject: [Talk] Meditech C/S drop down menu lost focus with Timeout

 

I have a script that I run daily at a locked XP workstation. It runs okay, but once in awhile it times out at the target screen (Print Queued Reports) because the drop down menu to get into it, loses its focus before the script can get there. Maybe twice or three times a month.

I wanted to set up a timeout error to reset the script when this happens. The problem I'm having now is that the On Error GoTo & Timeout statements cause it to timeout ALL the time now (at least it's consistent now). I've tried to Activate the window before selecting the drop down menu, and that works if the workstation isn't locked, but not while it's locked.

Any suggestions? The workstation isn't in a secured area, so it can't really run unlocked.

 On Error GoTo TimeoutErr 

 ... more steps ...
       
    Pause "MEDITECH Imaging & Therapeutic Services [EMAIL PROTECTED],1"
    Key "{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}"
    Wait
    Activate "MEDITECH" '*** Bring Meditech window to focus
    Enter ""  '*** Enter on drop down menu
    Key "{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}"
    Enter ""
    Timeout = 10
    Pause "Print Queued [EMAIL PROTECTED],1"
    Pause "@3,8" '*** Report Type prompt

 ... more steps ...

 TimeoutErr:
 ... more steps ...

 

Thanks
Michelle

617-665-3432
617-546-7770 pgr.
Clinical Application Analyst
CHA Information Technology
[EMAIL PROTECTED]

 

Reply via email to