I was thinking when the red X/file-close on BWS is clicked as I have created a global hot key using API and if the hot key is not disengaged properly, it will fail in the future.
I was hoping to have something automatic so that the end user wouldn't have to do anything. Here is a brief summary of what my script does... 1) Initializes some global variables, instance class modules, and run a procedure that sets up my hotkey. 2) Before I move to the next step which connects to Star, the hotkey has to be pressed. 3) Once pressed, the script scrapes data from Star to use in another application 4) When the processing is done in the other application, I have the script go back to what I called a Holding_Pattern Step which resets my hotkey and waits for the next time that it is pressed to pull the data from Star and enter it to the other program. When the user is done for the day and closes the program, I need this hotkey deactivation code to process so when the user starts up again there will be no errors. Garrett From: [email protected] [mailto:[email protected]] Sent: Tuesday, October 20, 2009 2:39 PM To: [email protected] Subject: [talkbws] RE: Running a Procedure Prior to Close Greetings, Meaning red x in a "connected to" application? Is this a script that is watching a user? Or a script you run that does stuff, then you shut the application down by hand? Event manager could do this, but may also be overkill, but would need to know more. 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: Tuesday, October 20, 2009 5:29 PM To: Talk Subject: [talkbws] Running a Procedure Prior to Close Basically what I am asking is, upon clicking the red X or File --> Close, would I be able to run a procedure to clean some things up? I am assuming it would have to do with EventManager, but I am not familiar with using that. Thanks, Garrett S. O'Sullivan Project Assistant Regional Business Office 1235 NE 47th Avenue, Suite 110 Portland, Oregon 97213 Phone: 503.215.4462 Fax: 503.215.4343 Pager: 503.920.4560 [email protected]<mailto:[email protected]> ________________________________ This message is intended for the sole use of the addressee, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message. --- 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 ________________________________ This message is intended for the sole use of the addressee, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message. --- 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
