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

EventMonitor.LastMouseClickButton

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" )   More

Parameters

none

Result

Returns number or error.

Description

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

Created 21st June 2015, last changed 29th July 2015


EventMonitor.Install   -   EventMonitor.LastMouseClickIsDoubleClick

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins