Get(ActiveModifierKeys) Reference

Posted in Scripts by Dempsey
.

Get(ActiveModifierKeys) (previously known as Status(CurrentModifierKeys) can be a very useful tool for running different script steps in different situations. For example, you could have a ‘New Record’ button, but if a certain combination of keys that only certain users knew were held down, then it could delete the current record instead.

Below is a reference of some combinations of the modifier keys in FileMaker:

Case(
Get(ActiveModifierKeys) = 1, “Shift”,
Get(ActiveModifierKeys) = 2, “Caps Lock”,
Get(ActiveModifierKeys) = 3, “Shift with Caps Lock”,
Get(ActiveModifierKeys) = 4, “Control or Cntrl”,
Get(ActiveModifierKeys) = 5, “Shift - with - Control or Cntrl”,
Get(ActiveModifierKeys) = 6, “Caps Lock - with - Control or Cntrl”,
Get(ActiveModifierKeys) = 7, “Shift - with - Caps Lock - with - Control or Cntrl”,
Get(ActiveModifierKeys) = 8, “Option For Macs - Alt For Windows”,
Get(ActiveModifierKeys) = 9, “Shift - with - Option For Macs - Alt For Windows”,
Get(ActiveModifierKeys) = 10, “Caps Lock - with - Option For Macs - Alt For Windows”,
Get(ActiveModifierKeys) = 11, “Shift - with - Caps Lock - with - Option For Macs - Alt For Windows”,
Get(ActiveModifierKeys) = 12, “Control or Cntrl - with - Option For Macs - Alt For Windows”,
Get(ActiveModifierKeys) = 16, “Command For Macs”,
“No Modifier Keys Are Held Down”)

Leave a Reply