July 4, 200718 yr 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
July 4, 200718 yr 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, 200718 yr by Guest
Create an account or sign in to comment