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”)



March 6th, 2009 at 12:22 pm
Hello,
I’m using this function with Filemaker 9 and Instant Web Publishing.
Well if you are the host, there is no problem, but if you check this function using the webserver, the value always returned is 0.
That means it is not possible to know which is the pressed key in a Web client?
Thnaks in advance