Approach 9.5 Close Script
Approach 9.5 Close Script
(OP)
I would like a script to run if my opproach database is not used for a specified amount of time, ( the script will close approach without saving) this is to ensure that the database is not left open as automated tasks run over night. any help would be very greatfull. Thankx
RE: Approach 9.5 Close Script
' Set the timer interval for the current view to 15 seconds.
CurrentApplication.ActiveView.TimerInterval = 15000
When the TimerInterval expires, the "UserTimer" event is raised for the same view you started it on, so you can put code in that event to check for activity and either close or simply reinitialize the timer.
The main problem with this technique is determining whether the user is still active. So most people who use this technique simply check the current time and if it is after say 8PM, they close the APR. Another method if the interval is set to something like 20 minutes so as to not annoy the user is to pop up a dialog with a message asking the user if they want to continue and give them a couple of minutes to respond. If they do not, close the APR.
Sue Sloan
XpertSS.com
RE: Approach 9.5 Close Script
RE: Approach 9.5 Close Script