I need a script triggered by pressing a function key, i.e. F9, to insert predefined text into a field. Looks like GET(TriggerKeystroke) is the way to do it but not quite sure how to put it together. Thanks.
I don't believe FileMaker's functions [ Get ( TriggerModifierKeys ) or Get ( ModifierKeys ) ] will trap for Function Keys, but they can be set to trap for Command-Shift-Number keys, among other things.
This can allow you to use modifier keys with script triggers on a specific field(s). I don't think you would want to run a trigger OnKeystroke or OnObjectModify on every field, as it could slow things noticeably.
Ctrl+1, 2...0 etc. triggers first 10 scripts in script manager, this will solve my needs.
Stephen is right - you can't trap for the Function Keys, but go to the Six Fried Rice blog and check out Keystroke Companion...
Retrieving data ...