Double-click the event on a specific element in a FrameMaker document

Using the Notification/Notify (FA_Note_PostMouseCommand/FA_Note_PostMouseCommand), I can check where in the structure or which element has been activated, and if a specific item has been clicked, a dialog window opens to perform certain actions. But I would like to have this action occur only on a double click.

Any suggestions?

Thank you

Trent Schwartz

This seems to work with FrameMaker 12:

#target framemaker

setupNotifications ();

function setupNotifications () {

    // Set notifications for after mouse command.
    Notification(Constants.FA_Note_PreMouseCommand, true);

}

function Notify (note, object, sparam, iparam) {

    // Handle the mouse events.
    switch (note) {
        case Constants.FA_Note_PreMouseCommand :
        if (iparam === 16777269) {
            alert ("double-click on element");
        }
        break;

    }
}

Tags: Adobe FrameMaker

Similar Questions

Maybe you are looking for