Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
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
Created 27th May 2016, last changed 18th February 2019
Feedback: Report problem or ask question.