AuthenticEvent.altLeft (obsolete) Imprimer cette rubrique Page précédente Un niveau supérieur Page suivante

Accueil >  Programmers' Reference > Application API > Interfaces (obsolete) > AuthenticEvent (obsolete) >

AuthenticEvent.altLeft (obsolete)

Superseded by parameters to

AuthenticView.OnKeyboardEvent (On_AuthenticView_KeyPressed)

AuthenticView.OnMouseEvent (On_AuthenticView_MouseEvent)

AuthenticView.OnDragOver (On_AuthenticView_DragOver)


The event object that holds the information of the last event is now replaced by parameters to the different event handler functions to simplify data access. The event object will be supported for a not yet defined period of time for compatibility reasons. No improvements are planned. It is highly recommended to migrate to the new event handler functions.


// ----- XMLSpy scripting environment - javascript sample -----

// instead of:

// function On_DocEditKeyDown ()

// {

//     if (Application.ActiveDocument.DocEditView.event.altKey ||

//         Application.ActiveDocument.DocEditView.event.altLeft)

//        MsgBox ("alt key is down");

// }

// use now:

function On_AuthenticView_KeyDown (SPYKeyEvent i_eKeyEvent, long i_nKeyCode, SPYVirtualKeyMask i_nVirtualKeyStatus)


  if (i_nVirtualKeyStatus & spyAltKeyMask)

       MsgBox ("alt key is down");



See also


Declaration: altLeft as Boolean



True if the left ALT key is pressed.




© 2018 Altova GmbH