Trigger OnMouseClick and function Get( TriggerMouseClickInfo )

Idea created by arnoldkegebein on Mar 8, 2016
    Active
    Score12

    I like to have an OnMouseClick Trigger that will fire when any mouse button was clicked.

    The function Get( TriggerMouseClickInfo ) will return the X and Y coordinates where the mouse was clicked (using layout coordinates) plus a number telling about what mouse button was used, e. g. "400¶600¶2" for a right click at the coordinates (400, 600).

    The trigger should fire before any object at the click coordinates are activated.

     

    This trigger could be used in multiple ways. For example for a conference room seating arrangement. Instead of creating a layout for every new seating arrangement (hard-coding), an image with the seating plan and a table with positions of tables and chairs are used. The coordinates provided by the trigger OnMouseClick are used to search the table with the chair positions.