David Jondreau Posted July 4, 2007 Posted July 4, 2007 Is there a way to detect a paused script? Or prevent a script from being run based on whether another script is paused? I inherited a solution that has about 15 scripts in the Scriptmaker drop down. There are several scripts that pause for user entry. Sometimes when a user is paused, they will lose focus and run another script which often dumps them somewhere they don't expect/shouldn't be (usually in a find layout but in browse mode). I'd like to stop this from happening with the least amount of effort. Ideas? Thanks, DJ
Inky Phil Posted July 4, 2007 Posted July 4, 2007 (edited) Create a global field. Populate the global field at the start of each script after first checking to see if it is already populated. If it is, issue a message to say that another script is already running and then exit the new script. At the end of every script set the global to "". I cannot guarantee this method as I haven't tried it but I cannot see why it shouldn't work Phil Edited July 4, 2007 by Guest
Recommended Posts
This topic is 6354 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now