Is the issue that the code isn't staying in the Rule's action? (Your statement that it reverts suggests that)
How exactly are you editing the Rule? You need to use "Edit Action" on that Rule to assign the code to it. You should see in the VBA editor when you do this: Sub Edit_Action() ///your code here/// Thom C. Blackwell Vice President, Technical Services Boston Software Systems (866) 653-5105 ex 807 www.bossoft.com <http://www.bossoft.com/> Learn about what we do <http://www.youtube.com/watch?v=Fbjk_4LUZYU> Please follow us on Facebook <http://www.facebook.com/pages/Boston-Software-Systems/122739774403349?> and Twitter! <http://twitter.com/Bossoft> 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: Tuesday, October 25, 2011 11:04 AM To: Talk Subject: [talkbws] Relaunch after process closes I have been trying to figure out a way to relaunch Meditech once the t.exe process closes. I built the function(CheckRunning) that checks to see if the process is running but I'm having trouble setting up a rule to always run and then open and connect to the Meditech screen again. This is what I am trying but it does not work: If Rule("") Then Wait 30 If Not CheckRunning Then Step = "LAUNCH" End If Exit Sub End If When I save this, it reverts back to: If Rule("") Then Wait 30 Step = "LAUNCH" Exit Sub End If I think I understand why it reverts back, but I'm not sure what else to try yet. Is there a built in function in Boston Workstation that will help me keep the Meditech window open? Goal: We have a Meditech ORM Big Board setup. I have the script setup to launch Meditech and sign directly into the Big Board. The device is currently wireless and the connection drops often. I am working on getting it switched over to be hardwired. Every time it drops, Meditech closes. So I want the script to watch for t.exe to close, ping Meditech until the computer can see it again(this part is working), and then launch Meditech and connect to it again. Thanks, Drew Glaser Data Programmer Analyst CareTech Solutions Office: (419) 429-7614 <http://www.caretech.com/> Helping extraordinary people do extraordinary things Best in KLAS Extensive IT Outsourcing 2008, 2009 & 2010 Top 20 Best in KLAS Awards www.KLASresearch.com <http://www.klasresearch.com/> --- 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
<<image001.gif>>
<<image002.gif>>
