Neuronal Nerd Posted January 7, 2009 Posted January 7, 2009 I have a question about the new FM10 feature. I've enclosed a sample script. I have the OnObjectKeystroke on each of the enclosed fields. I would like the user to be able to push a single keystroke of T or F, and then move to the next field. I have it triggering a script that simply has a step go to next field. I do not understand why this gets caught in an endless loop after just pushing one key. This is not how I understand it to work via the help menu. Any ideas? Script_Trigger.fp7.zip
The Shadow Posted January 7, 2009 Posted January 7, 2009 It appears to work much better on the "OnModify" state. The keystroke handling appears to restart (or is triggered by) the "Goto Next Field". Also, script triggers should return "True" to allow the action, see my changes to your file. Script_Trigger.fp7.zip
bruceR Posted January 7, 2009 Posted January 7, 2009 (edited) There are some problems with that approach, such as allowing invalid characters or multiple characters in the field. The attached mods allow only T or F and only move for tab, enter, return. Also, see an excellent writeup on keystroke and triggering here: http://sixfriedrice.com/wp/script-triggers-using-the-keystroke-trigger/ script_trigger.zip Edited January 7, 2009 by Guest
Neuronal Nerd Posted January 7, 2009 Author Posted January 7, 2009 Thank you both for your responses. I learned something from each, and Bruce's rendition appears to be the one I'll end up using.
Recommended Posts
This topic is 5800 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