Jump to content

Special button script


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

Recommended Posts

  • Newbies

Is there anybody who can help me give a hint how to solve this problem:

Every time this button is pressed on a ceretain layout, a different script shall start to run.,

For example: first press runs script 1, next press runs script 2, next press runs script 3 and so on.

When i leave the layout this button should be

Link to comment
Share on other sites

Hi Jan,

1. First create a Global number field (flag).

2. Create a script for your button,

If["Flag=""1"]

Perform Script [sub-scripts,"1"]

Set Field ["Flag","2"]

Else

If["Flag=""2"]

Perform Script [sub-scripts,"2"]

Set Field ["Flag","3"]

Else

... and so on

Be sure to set the "Flag" to "1" before you leave the layout. (put a "Set Field ["Flag","1"]" in the button that takes you out of the layout)

zz laugh.gif

Link to comment
Share on other sites

This topic is 8086 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.