AnsweredAssumed Answered

Triggering a Script on Enter, Return or Tab

Question asked by ericellis9 on Jan 7, 2015
Latest reply on Sep 12, 2017 by philmodjunk

Title

Triggering a Script on Enter, Return or Tab

Post

I am trying to trigger a script when the user either hits the enter, tab or return key.  I created a script that has the following:

 

If (Get ( TriggerKeystroke ) = 9 or //Tab Key
    Get ( TriggerKeystroke ) = 10 or // Enter
    Get ( TriggerKeystroke )= 13 // Retun

    )

         Perform Script (Name)

End If

I then entered this script in the "Set Script Triggers" area for "OnObjectKeystroke".

The problem is, the "Get" function keeps returning a blank, not a value.  Any thoughts on what I might be doing wrong?

I am running FMP13 client connected to a DB on the FMP Server.

Thanks...

e

Outcomes