Either noone has something or noone cares. So...
Does anyone have a method of obtaining the window handle (hWnd) for the current "Connect" application within BWS? Thank you, Mitch Lawrence Lead Applications Analyst Technical Support - NPR/Automation CHRISTUS Information Management *: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Send a "thank you <http://intranet.christushealth.org/spiritBuck/Default.asp> " to someone! ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lawrence, Mitchell Sent: Thursday, July 31, 2008 9:14 AM To: [email protected] Subject: [Talk] Meditech C/S 5.5, 5.6 and minimizing using BWS Hello, I have several scripts that start Meditech, browse to a report, get it to start downloading and then minimize Meditech and finish the script, leaving Meditech downloading in the background. The problem that I am seeing is that since version 9, BWS no longer "sees" the "[EMAIL PROTECTED],1" state from Meditech. Version 8 did not have an issue "seeing" this state. Since this state is what is being keyed in on in order to let BWS know it is ok to minimize Meditech, I'm at a dilemma in that I need a version 9 way to accomplish the same thing. Here is the set of rules that accomplishes this task (version 9 script shown): Rule||Print/Download Key "{F12}" Step|Print/Download| Rule|Print [EMAIL PROTECTED],1&@3,0|Select Destination DownloadReport "C:\Download\IPC\RN_IPC_" & DateStamp & ".txt" Rule|Timeout|Timeout TOStep="Print/Download" Step|Select Destination| Rule||Output Enter "" 'Press "OK" on the Print Destination window Share("WaitSpeed") = -1 'Recommended to use this during support call with BWS. Added for version 9 Stable 0.5 'Let Meditech stabilize. Added for version 9 Step|Output| Rule|[EMAIL PROTECTED],1|Minimize 'Is Meditech actively downloading? If so, minimize it. Rule|Timeout|Timeout TOStep = "Output" Step|Minimize| Rule||Closeout SendKeys "% N", True 'Send the minimizing key sequence to Meditech Step|Closeout| Rule||End WriteToLog "INWSRH_IPC_RN_DL", "Download", "Daily", "5", "01:10:00 AM", "Completed" Step|Timeout| Rule||End WriteToLog "INWSRH_IPC_RN_DL", "Download", "Daily", "5", "01:10:00 AM", "Hung" Step|End| Rule|| Shutdown = True What is happening is that sometimes this works, sometimes it doesn't. It isn't consistent as it was under version 8. I've also tried the following for checking the state of Meditech before sending to the minimizing step: Rule|[EMAIL PROTECTED],1|Minimize I would appreciate very much any assistance, suggestions, etc on getting this thing to work, everytime, without fail. Our current scheduled script count: 673 On demand data entry script count: 35 Thank you, Mitch Lawrence Lead Applications Analyst Technical Support - NPR/Automation CHRISTUS Information Management *: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Send a "thank you <http://intranet.christushealth.org/spiritBuck/Default.asp> " to someone!
<<image002.jpg>>
