FileMaker Command - Get(ActiveModifierKeys)


Igeek take a look at this FileMaker database command.

Get(ActiveModifierKeys)
Returns a number for the keyboard modifier keys being pressed.

Format 
Get ( ActiveModifierKeys )

Parameters 
None

Data type returned 
number

Originated in 
FileMaker Pro 6.0 or earlier

Description 
The number returned is calculated by summing numbers representing each modifier key (for example, Control+Shift) being pressed. The values assigned to the keys are:

•Shift = 1

•Caps Lock = 2

•Ctrl (Windows) and Control (macOS) = 4

•Alt (Windows) and Option (macOS) = 8

•Command (macOS) = 16

You could use this function in a script that includes a custom dialog box script step (with an OK and Cancel button) to perform some special action if the user presses the Alt (or Option) key while clicking OK.

Notes 
•In FileMaker WebDirect and FileMaker Go, this function is not supported and returns 0.

igeek are based in Weston-super-Mare and develop Claris / FileMaker database software for clients in Bristol and the South West of England.


Blog entry is closed for new comments.