Jump to content

OnLayoutEnter Trigger


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

Recommended Posts

Hello all:

I have a problem that I'm having a hard time getting out of.

I have an "OnLayoutEnter" trigger and inside this trigger I have a script that goes to a New Window, does some processing, and returns.

The issue I'm having is that when the script hits the New Window command the focus goes back to the "OnLayoutEnter" trigger and starts to run that again.

I'm just confused as to why it would jump back to the "OnLayoutEnter" trigger script and is there a way to avoid that from happening.

Dom

Link to comment
Share on other sites

Thank you very much -- that should do it.

At the beginning of your script add this:

If[$$triggerOff = 1]

Exit Script

End If

Around your New Window[] script step add this:

Set Variable[ $$triggerOff ; 1]

New Window[]

Set Variable[ $$triggerOff ; "" ]

Link to comment
Share on other sites

This topic is 4359 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
 Share

×
×
  • Create New...

Important Information

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