2 Replies Latest reply on Jun 20, 2017 8:18 AM by realgrouchy

    Get ( ActiveModifierKeys ) equivalent for FM Go?

    realgrouchy

      I have a file set to open by default in read-only mode, and I can alt+click (MacOS) or shift+click (Windows) the file icon to show the log in prompt when the file opens so I can log in as a user with more privileges. On FM Go on iOS (iPad), the equivalent to this is long-pressing the file icon, which brings up a "log in" button that I can click to use when opening the file.

       

      I am trying to program a button that calls a script which has a confirmation prompt. On FM Pro, if the user holds the Shift key when pressing the button, it will skip the confirmation prompts. It does this by setting a variable at the start of the script based on whether Get ( ActiveModifierKeys ) = 1.

       

      I recognize that Get ( ActiveModifierKeys ) does not work on FM Go. However, I'd like to have similar functionality on this button for when I'm using this file on FM Go. For example, if the user long-presses the button in FM Go, it will skip the prompts.

       

      Does anyone know if there is anything available that allows this kind of functionality? Or should I be heading to the Product Features forum...

       

      Thanks in advance,

       

      - RG>

        • 1. Re: Get ( ActiveModifierKeys ) equivalent for FM Go?
          robwoof

          Since there are no modifier keys available when pressing buttons in iOS, try looking at the Get ( TriggerGestureInfo ) function in concert with the OnGestureTap script trigger. It is a bit of extra work, but you could have the "skip prompts" option on iOS managed by

          1. Adding the OnGestureTap script trigger to the layout,
          2. Checking that the location of the tap is on the relevant button by checking the X and Y co-ordinates of the tap, and
          3. Noting that if the finger count of the tap is >1, using the "skip prompts" option.

          It adds complication to the script and the layout, but it does give an iOS option for skipping the prompts.

           

          HTH

          Rob

          3 of 3 people found this helpful
          • 2. Re: Get ( ActiveModifierKeys ) equivalent for FM Go?
            realgrouchy

            Thanks, that's just the kind of thing I was looking for!

             

            - RG>