abracadabraPDF › Forums › PDF – Général › Interrompre un script › Répondre à : Interrompre un script
9 octobre 2015 à 12:42
#59762

Maître des clés
OK, alors ça se joue avec le paramètre nButton:
1 — OK
2 — Cancel
3 — No
4 — Yes
Exemple extrait de la doc. :
Close the document with the user’s permission:
// A MouseUp action
var nButton = app.alert({
cMsg: « Do you want to close this document? »,
cTitle: « A message from A. C. Robat »,
nIcon: 2, nType: 2
});
if ( nButton == 4 )
{this.closeDoc();}