Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Queries the index of the last pressed mouse button.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
EventMonitor 5.2 Yes Yes No No No

MBS( "EventMonitor.LastMouseClickButton" )




Returns number or error.


Queries the index of the last pressed mouse button.
Returns 1 for left, 2 for right and 3 for other. (other is Mac only currently)

Please call EventMonitor.Install earlier in your scripts once on startup of solution.
Call this function in a script triggered by a mouse click (e.g. on a button) to see if mouse event triggering the script was using right or left mouse button.

See also

Example Databases

EventMonitor.Install   -   EventMonitor.LastMouseClickIsDoubleClick

Feedback: Report problem or ask question.

MBS Xojo Plugins