Matt Klein Posted April 12, 2009 Posted April 12, 2009 Here's the thing...I am well aware that when defining a button on a layout to perform a script, you have the option to act on the currently running script, if there is one running, by Pausing, Resuming, Halting, etc. I can't, however, figure out how to accomplish this from a menu item that is setup to run a script or from inside another script. In general, I stay away from pausing a script to allow user input. However, I found a situation where it was preferable to pause the script so that the user can't click into a different window, thereby sending the window to the back and essentially making it invisible to the user. It works great when the user uses the mouse to click on the buttons on the layout which are set to Resume the paused script. However, if I want to allow them to use keystrokes or some kind of alternative input device such as a foot pedal in lieu of clicking on the buttons on the layout, I can't set a menu item to perform a script and Resume the current script. Any suggestions?
Søren Dyhr Posted April 13, 2009 Posted April 13, 2009 Beyond that this is candidate to the use of event triggers such as this: http://www.myfmbutler.com/index.lasso?p=416 ...would I see if I couldn't manage to turn the scripting need into a combination of CF's and a better relational structure. There isn't a one size fits all here, but the need to script in the first place might be down to an inadequate structur - which I for one would feel uncomfortable with, if the quick fix method would learn you bad habits? Explain your context and purpose! --sd
comment Posted April 13, 2009 Posted April 13, 2009 I would split the first script into two, and end the second part with a Halt Script (to terminate the paused first part). Of course, this has some downsides too, such as losing the ability to return to the original layout.
Matt Klein Posted April 13, 2009 Author Posted April 13, 2009 (edited) Thanks comment! Truth be told, I had already broken the routine into two scripts, but I hadn't even thought about using a Halt Script step at the end of the second script. It would be common sense that that would be the ticket, but it just didn't come to me. Thank you very much for getting me past my brain block. That's why I love this forum! Edited April 13, 2009 by Guest
Recommended Posts
This topic is 5704 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