4 Replies Latest reply on Jan 7, 2015 8:48 AM by ericellis9

    Triggering a Script on Enter, Return or Tab

    ericellis9

      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