Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Installs a script trigger for mouse wheel.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
FM | 6.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
FileName | The file name for the script. | Get(Filename) | |
ScriptName | The name of the script to trigger. Can be empty to disable feature. |
"WheelScriptTrigger" | |
MinDelay | The minimum delay between script triggers. Default is 1. Could be 0.5 for a quicker reaction. |
1 | Optional |
IgnoreRectangleX | Available in MBS FileMaker Plugin 7.1 or newer. The X position of the rectangle where scroll action is ignored if the mouse is inside. Relative to the parent window. Default is -1 to have no such rectangle. Rectangle area is Windows only. |
135 | Optional |
IgnoreRectangleY | Available in MBS FileMaker Plugin 7.1 or newer. The Y position of the rectangle where scroll action is ignored if the mouse is inside. Relative to the parent window. Default is -1 to have no such rectangle. |
55 | Optional |
IgnoreRectangleW | Available in MBS FileMaker Plugin 7.1 or newer. The width of the rectangle where scroll action is ignored if the mouse is inside. Relative to the parent window. Default is -1 to have no such rectangle. |
400 | Optional |
IgnoreRectangleH | Available in MBS FileMaker Plugin 7.1 or newer. The height of the rectangle where scroll action is ignored if the mouse is inside. Relative to the parent window. Default is -1 to have no such rectangle. |
500 | Optional |
Returns OK or error.
Installs trigger:
MBS("FM.MouseWheelScriptTrigger"; Get(FileName); "MouseTrigger")
Sample MouseTrigger script to move between records:
If [Get ( ActiveFieldName ) = ""]
Set Variable [$r; Value:Round(Get(ScriptParameter) / 120; 0)]
Go to Record/Request/Page [No dialog; Get ( RecordNumber ) + $r]
// Set Variable [$r; Value:MBS("Log"; "MouseWheel " & $r)]
End If
This function checks for a license.
Created 27th May 2016, last changed 18th February 2019