Filemaker Pro 8.5 Educational Maintenance T3 TJ083LL/A User Manual

Product codes
TJ083LL/A
Page of 238
Chapter 7
  
|
  Get functions     71
Get(ActiveModifierKeys)
Format
Get(ActiveModifierKeys)
Parameter
None
Data type returned
number
Description
Returns a number representing the keyboard modifier keys (for example, Control+Shift) 
that are being pressed. The number is calculated by summing numbers representing each 
modifier key being pressed. The values assigned to the keys are:
Shift  =  1
Caps Lock = 2
Ctrl (Windows) and Control (Mac OS) = 4
Alt (Windows) and Option (Mac OS) = 8
2 (Mac OS) = 16
Note  
See FileMaker Pro help for information about running 
 in client/server and 
peer-to-peer environments.
Example
Returns the number 
9
 when Shift+Alt is pressed on a computer running Windows. 
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
.
Get(ActiveRepetitionNumber)
Format
Get(ActiveRepetitionNumber)
Parameter
None
Data type returned
number