Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6354 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted (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 by Guest

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.